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_CS_H 12 #define RADV_NULL_CS_H 13 14 #include "radv_null_winsys.h" 15 #include "radv_radeon_winsys.h" 16 17 struct radv_null_ctx { 18 struct radv_null_winsys *ws; 19 }; 20 21 static inline struct radv_null_ctx * radv_null_ctx(struct radeon_winsys_ctx * base)22radv_null_ctx(struct radeon_winsys_ctx *base) 23 { 24 return (struct radv_null_ctx *)base; 25 } 26 27 void radv_null_cs_init_functions(struct radv_null_winsys *ws); 28 29 #endif /* RADV_NULL_CS_H */ 30