radv: Expose that we don't support any VK_KHR_16_bit_storage parts.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 21 Jan 2018 23:34:08 +0000 (00:34 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Mar 2018 20:18:35 +0000 (21:18 +0100)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index 44154d4e7b827f8b7e89b26ba8035046fd808863..2959253885a638fcc49088c32021314bcf505ae0 100644 (file)
@@ -707,6 +707,15 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->protectedMemory = false;
                        break;
                }
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES: {
+                       VkPhysicalDevice16BitStorageFeatures *features =
+                           (VkPhysicalDevice16BitStorageFeatures*)ext;
+                       features->storageBuffer16BitAccess = false;
+                       features->uniformAndStorageBuffer16BitAccess = false;
+                       features->storagePushConstant16 = false;
+                       features->storageInputOutput16 = false;
+                       break;
+               }
                default:
                        break;
                }