1 /* 2 * Copyright © 2020 Valve Corporation 3 * 4 * based on amdgpu winsys. 5 * Copyright © 2016 Red Hat. 6 * Copyright © 2016 Bas Nieuwenhuizen 7 * 8 * SPDX-License-Identifier: MIT 9 */ 10 11 #ifndef RADV_NULL_BO_H 12 #define RADV_NULL_BO_H 13 14 #include "radv_null_winsys.h" 15 16 struct radv_null_winsys_bo { 17 struct radeon_winsys_bo base; 18 struct radv_null_winsys *ws; 19 void *ptr; 20 }; 21 22 static inline struct radv_null_winsys_bo * radv_null_winsys_bo(struct radeon_winsys_bo * bo)23radv_null_winsys_bo(struct radeon_winsys_bo *bo) 24 { 25 return (struct radv_null_winsys_bo *)bo; 26 } 27 28 void radv_null_bo_init_functions(struct radv_null_winsys *ws); 29 30 #endif /* RADV_NULL_BO_H */ 31