• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2016 Red Hat.
3  * Copyright © 2016 Bas Nieuwenhuizen
4  * based on amdgpu winsys.
5  * Copyright © 2011 Marek Olšák <maraeo@gmail.com>
6  * Copyright © 2015 Advanced Micro Devices, Inc.
7  *
8  * SPDX-License-Identifier: MIT
9  */
10 
11 #ifndef RADV_NULL_WINSYS_H
12 #define RADV_NULL_WINSYS_H
13 
14 #include "util/list.h"
15 #include "ac_gpu_info.h"
16 #include "radv_radeon_winsys.h"
17 
18 struct vk_sync_type;
19 
20 struct radv_null_winsys {
21    struct radeon_winsys base;
22    const struct vk_sync_type *sync_types[2];
23 };
24 
25 static inline struct radv_null_winsys *
radv_null_winsys(struct radeon_winsys * base)26 radv_null_winsys(struct radeon_winsys *base)
27 {
28    return (struct radv_null_winsys *)base;
29 }
30 
31 #endif /* RADV_NULL_WINSYS_H */
32