Commit 037f11d4 authored by Rhys Perry's avatar Rhys Perry Committed by Samuel Pitoiset

radv: enable VK_KHR_8bit_storage

Signed-off-by: Rhys Perry's avatarRhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Bas Nieuwenhuizen's avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
parent 3cc72a88
Pipeline #25262 passed with stages
in 52 minutes and 44 seconds
...@@ -439,7 +439,7 @@ Vulkan 1.1 -- all DONE: anv, radv ...@@ -439,7 +439,7 @@ Vulkan 1.1 -- all DONE: anv, radv
VK_KHR_variable_pointers DONE (anv, radv) VK_KHR_variable_pointers DONE (anv, radv)
Khronos extensions that are not part of any Vulkan version: Khronos extensions that are not part of any Vulkan version:
VK_KHR_8bit_storage DONE (anv) VK_KHR_8bit_storage DONE (anv, radv)
VK_KHR_android_surface not started VK_KHR_android_surface not started
VK_KHR_create_renderpass2 DONE (anv, radv) VK_KHR_create_renderpass2 DONE (anv, radv)
VK_KHR_display DONE (anv, radv) VK_KHR_display DONE (anv, radv)
......
...@@ -895,6 +895,15 @@ void radv_GetPhysicalDeviceFeatures2( ...@@ -895,6 +895,15 @@ void radv_GetPhysicalDeviceFeatures2(
features->hostQueryReset = true; features->hostQueryReset = true;
break; 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: default:
break; break;
} }
......
...@@ -92,6 +92,7 @@ EXTENSIONS = [ ...@@ -92,6 +92,7 @@ EXTENSIONS = [
Extension('VK_KHR_xlib_surface', 6, 'VK_USE_PLATFORM_XLIB_KHR'), Extension('VK_KHR_xlib_surface', 6, 'VK_USE_PLATFORM_XLIB_KHR'),
Extension('VK_KHR_multiview', 1, True), Extension('VK_KHR_multiview', 1, True),
Extension('VK_KHR_display', 23, 'VK_USE_PLATFORM_DISPLAY_KHR'), Extension('VK_KHR_display', 23, 'VK_USE_PLATFORM_DISPLAY_KHR'),
Extension('VK_KHR_8bit_storage', 1, 'device->rad_info.chip_class >= VI'),
Extension('VK_EXT_direct_mode_display', 1, 'VK_USE_PLATFORM_DISPLAY_KHR'), Extension('VK_EXT_direct_mode_display', 1, 'VK_USE_PLATFORM_DISPLAY_KHR'),
Extension('VK_EXT_acquire_xlib_display', 1, 'VK_USE_PLATFORM_XLIB_XRANDR_EXT'), Extension('VK_EXT_acquire_xlib_display', 1, 'VK_USE_PLATFORM_XLIB_XRANDR_EXT'),
Extension('VK_EXT_buffer_device_address', 1, True), Extension('VK_EXT_buffer_device_address', 1, True),
......
...@@ -249,6 +249,7 @@ radv_shader_compile_to_nir(struct radv_device *device, ...@@ -249,6 +249,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
.transform_feedback = true, .transform_feedback = true,
.trinary_minmax = true, .trinary_minmax = true,
.variable_pointers = true, .variable_pointers = true,
.storage_8bit = true,
}, },
.ubo_ptr_type = glsl_vector_type(GLSL_TYPE_UINT, 2), .ubo_ptr_type = glsl_vector_type(GLSL_TYPE_UINT, 2),
.ssbo_ptr_type = glsl_vector_type(GLSL_TYPE_UINT, 2), .ssbo_ptr_type = glsl_vector_type(GLSL_TYPE_UINT, 2),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment