diff options
author | Eric Engestrom <[email protected]> | 2018-11-25 11:23:26 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-02-08 18:54:57 +0000 |
commit | e8e544436cbe1fc6139334a2314896b42f88882e (patch) | |
tree | 4d2138ff27ebfe8cec9d29ae64ffc6498378df6c /src/vulkan/wsi/wsi_common.h | |
parent | b031c643491a92a5574c7a4bd659df33f2d89bb6 (diff) |
wsi: query the ICD's max dimensions instead of hard-coding them
anv and radv both happened to already return 2^14 for these, but
querying the ICD is safer and will help if vdreno (or whatever it's
called) doesn't have the same max.
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common.h')
-rw-r--r-- | src/vulkan/wsi/wsi_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h index f6ca013c2a8..8851855fa28 100644 --- a/src/vulkan/wsi/wsi_common.h +++ b/src/vulkan/wsi/wsi_common.h @@ -100,6 +100,8 @@ struct wsi_device { VkPhysicalDevicePCIBusInfoPropertiesEXT pci_bus_info; bool supports_modifiers; + uint32_t maxImageDimension2D; + uint64_t (*image_get_modifier)(VkImage image); #define WSI_CB(cb) PFN_vk##cb cb |