radv: fix VK_EXT_descriptor_indexing
authorChristoph Haag <haagch@frickel.club>
Sun, 20 May 2018 11:21:13 +0000 (13:21 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 20 May 2018 11:36:07 +0000 (13:36 +0200)
GetPhysicalDeviceProperties2KHR() was crashing because features was null

Fixes: 0e10790558b "radv: Enable VK_EXT_descriptor_indexing."
CC: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index c52b3a591f8c3a9e13844c15390dcf8a70bac8b1..d6abab338eb0e314a878dd8f14c4bfd6261a8e87 100644 (file)
@@ -731,7 +731,7 @@ void radv_GetPhysicalDeviceFeatures2(
                }
                case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES_EXT: {
                        VkPhysicalDeviceDescriptorIndexingFeaturesEXT *features =
-                               (VkPhysicalDeviceDescriptorIndexingFeaturesEXT*)features;
+                               (VkPhysicalDeviceDescriptorIndexingFeaturesEXT*)ext;
                        features->shaderInputAttachmentArrayDynamicIndexing = true;
                        features->shaderUniformTexelBufferArrayDynamicIndexing = true;
                        features->shaderStorageTexelBufferArrayDynamicIndexing = true;