summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Haag <[email protected]>2018-05-20 13:21:13 +0200
committerDylan Baker <[email protected]>2018-05-30 16:56:47 -0700
commit5b79bbe27dc99f8bf12f82ca004f2f3f3cff25d6 (patch)
treeb2c0c750290283eadbb6a4b6bdc549ce9021db42
parent6fe826ee06d947734c3a847eb7495f368b70badb (diff)
radv: fix VK_EXT_descriptor_indexing
GetPhysicalDeviceProperties2KHR() was crashing because features was null Fixes: 0e10790558b "radv: Enable VK_EXT_descriptor_indexing." CC: 18.1 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> (cherry picked from commit 549e54270ba3a519b46a1fbffa4aa6b628a052d3)
-rw-r--r--src/amd/vulkan/radv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index a3a46332b06..22d3ef0a34f 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -736,7 +736,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;