From b1f023307768570a621c3050222bd32c546d72a9 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 8 May 2020 19:26:19 +0200 Subject: [PATCH] radv: enable shaderResourceMinLod MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This feature was missing for unknown reasons. Signed-off-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann Part-of: --- src/amd/vulkan/radv_device.c | 1 + src/amd/vulkan/radv_shader.c | 1 + 2 files changed, 2 insertions(+) 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, -- 2.30.2