summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_device.c
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2018-12-06 13:33:48 +0000
committerSamuel Pitoiset <[email protected]>2019-03-21 09:02:27 +0100
commit037f11d42ec2bb6812f4cc51dffff3916fccf62a (patch)
tree1aec93452068b8b4f10d974a104d4309ee6aee92 /src/amd/vulkan/radv_device.c
parent3cc72a88d8d717d0dddef83548092e3afe844d48 (diff)
radv: enable VK_KHR_8bit_storage
Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r--src/amd/vulkan/radv_device.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 5a54c5842ab..433b8542029 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -895,6 +895,15 @@ void radv_GetPhysicalDeviceFeatures2(
features->hostQueryReset = true;
break;
}
+ case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES_KHR: {
+ VkPhysicalDevice8BitStorageFeaturesKHR *features =
+ (VkPhysicalDevice8BitStorageFeaturesKHR*)ext;
+ bool enabled = pdevice->rad_info.chip_class >= VI;
+ features->storageBuffer8BitAccess = enabled;
+ features->uniformAndStorageBuffer8BitAccess = enabled;
+ features->storagePushConstant8 = enabled;
+ break;
+ }
default:
break;
}