[Mesa-dev] [PATCH 2/9] anv: Enable VK_KHR_16bit_storage for push_constant

Jason Ekstrand jason at jlekstrand.net
Thu Dec 7 04:34:20 UTC 2017


From: Chema Casanova <jmcasanova at igalia.com>

Enables storagePushConstant16 feature of VK_KHR_16bit_storage
for Gen8+.

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
 src/intel/vulkan/anv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 81a2ed6..fd5326b 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -747,7 +747,7 @@ void anv_GetPhysicalDeviceFeatures2KHR(
 
          features->storageBuffer16BitAccess = pdevice->info.gen >= 8;
          features->uniformAndStorageBuffer16BitAccess = pdevice->info.gen >= 8;
-         features->storagePushConstant16 = false;
+         features->storagePushConstant16 = pdevice->info.gen >= 8;
          features->storageInputOutput16 = false;
          break;
       }
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list