diff options
author | Jose Maria Casanova Crespo <[email protected]> | 2017-11-20 23:28:45 +0100 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-02-28 21:37:40 -0800 |
commit | 994d21042996232998a51bfabaab6f4970f0ea5a (patch) | |
tree | 8f5cb2179ab0bd423479604cd0a1587273888cd6 /src/intel/vulkan/anv_device.c | |
parent | 69be3a82ca6f3247c75d76ae97429462c8909a3c (diff) |
anv: Enable VK_KHR_16bit_storage for SSBO and UBO
Enables storageBuffer16BitAccess and uniformAndStorageBuffer16BitAccesss
features of VK_KHR_16bit_storage for Gen8+.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 41f9e00c4e7..e42b05d4fa7 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -793,9 +793,10 @@ void anv_GetPhysicalDeviceFeatures2KHR( case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES_KHR: { VkPhysicalDevice16BitStorageFeaturesKHR *features = (VkPhysicalDevice16BitStorageFeaturesKHR *)ext; + ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); - features->storageBuffer16BitAccess = false; - features->uniformAndStorageBuffer16BitAccess = false; + features->storageBuffer16BitAccess = pdevice->info.gen >= 8; + features->uniformAndStorageBuffer16BitAccess = pdevice->info.gen >= 8; features->storagePushConstant16 = false; features->storageInputOutput16 = false; break; |