Created
May 20, 2018 11:33
-
-
Save ChristophHaag/67d2c04a76eeccde4fe175df6602355c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c0ea63984dc12d8ab4af6952c406a72c51b0dad0 Mon Sep 17 00:00:00 2001 | |
From: Christoph Haag <haagch@frickel.club> | |
Date: Sun, 20 May 2018 13:21:13 +0200 | |
Subject: [PATCH] radv: fix VK_EXT_descriptor_indexing | |
GetPhysicalDeviceProperties2KHR() was crashing because features was null | |
--- | |
src/amd/vulkan/radv_device.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c | |
index 70af72eff1..f64051ad33 100644 | |
--- a/src/amd/vulkan/radv_device.c | |
+++ b/src/amd/vulkan/radv_device.c | |
@@ -756,7 +756,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; | |
-- | |
2.17.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment