Path: blob/21.2-virgl/src/gallium/winsys/amdgpu/drm/amdgpu_public.h
4561 views
/*1* Copyright © 2015 Advanced Micro Devices, Inc.2* All Rights Reserved.3*4* Permission is hereby granted, free of charge, to any person obtaining5* a copy of this software and associated documentation files (the6* "Software"), to deal in the Software without restriction, including7* without limitation the rights to use, copy, modify, merge, publish,8* distribute, sub license, and/or sell copies of the Software, and to9* permit persons to whom the Software is furnished to do so, subject to10* the following conditions:11*12* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES14* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND15* NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS, AUTHORS16* AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE19* USE OR OTHER DEALINGS IN THE SOFTWARE.20*21* The above copyright notice and this permission notice (including the22* next paragraph) shall be included in all copies or substantial portions23* of the Software.24*/2526#ifndef AMDGPU_PUBLIC_H27#define AMDGPU_PUBLIC_H2829#include "pipe/p_defines.h"3031struct radeon_winsys;32struct pipe_screen;33struct pipe_screen_config;3435typedef struct pipe_screen *(*radeon_screen_create_t)(struct radeon_winsys *,36const struct pipe_screen_config *config);3738struct radeon_winsys *39amdgpu_winsys_create(int fd, const struct pipe_screen_config *config,40radeon_screen_create_t screen_create);4142#endif434445