From: Samuel Pitoiset Date: Fri, 8 May 2020 17:26:19 +0000 (+0200) Subject: radv: enable shaderResourceMinLod X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1f023307768570a621c3050222bd32c546d72a9;p=mesa.git radv: enable shaderResourceMinLod This feature was missing for unknown reasons. Signed-off-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann Part-of: --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index fc102e23ced..bc8bcdb6ab3 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -943,6 +943,7 @@ void radv_GetPhysicalDeviceFeatures( .shaderInt16 = !pdevice->use_aco || pdevice->rad_info.chip_class >= GFX8, .sparseBinding = true, .variableMultisampleRate = true, + .shaderResourceMinLod = true, .inheritedQueries = true, }; } diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 217fc142de3..7dfa89d65e9 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -379,6 +379,7 @@ radv_shader_compile_to_nir(struct radv_device *device, .int16 = int8_int16_enable, .int64 = true, .int64_atomics = true, + .min_lod = true, .multiview = true, .physical_storage_buffer_address = true, .post_depth_coverage = true,