diff options
author | Jason Ekstrand <[email protected]> | 2016-05-15 22:21:24 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-17 12:17:22 -0700 |
commit | eb6baa31746b55d48892b0c57f0e0076b91efdeb (patch) | |
tree | 64af02ac95978dcdd05688c6f0938f2449a0366e /src/intel/vulkan/anv_private.h | |
parent | 2ad9d6237a510ec2acd0d416c34fe6e231460182 (diff) |
anv/wsi: Make WSI per-physical-device rather than per-instance
This better maps to the Vulkan object model and also allows WSI to at least
know the hardware generation which is useful for format checks.
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index c55f1db5180..e4b92d39546 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -532,6 +532,10 @@ anv_free2(const VkAllocationCallbacks *parent_alloc, anv_free(parent_alloc, data); } +struct anv_wsi_interaface; + +#define VK_ICD_WSI_PLATFORM_MAX 5 + struct anv_physical_device { VK_LOADER_DATA _loader_data; @@ -544,11 +548,9 @@ struct anv_physical_device { struct brw_compiler * compiler; struct isl_device isl_dev; int cmd_parser_version; -}; - -struct anv_wsi_interaface; -#define VK_ICD_WSI_PLATFORM_MAX 5 + struct anv_wsi_interface * wsi[VK_ICD_WSI_PLATFORM_MAX]; +}; struct anv_instance { VK_LOADER_DATA _loader_data; @@ -558,12 +560,10 @@ struct anv_instance { uint32_t apiVersion; int physicalDeviceCount; struct anv_physical_device physicalDevice; - - struct anv_wsi_interface * wsi[VK_ICD_WSI_PLATFORM_MAX]; }; -VkResult anv_init_wsi(struct anv_instance *instance); -void anv_finish_wsi(struct anv_instance *instance); +VkResult anv_init_wsi(struct anv_physical_device *physical_device); +void anv_finish_wsi(struct anv_physical_device *physical_device); struct anv_meta_state { VkAllocationCallbacks alloc; |