radv: enable shaderResourceMinLod
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 8 May 2020 17:26:19 +0000 (19:26 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 10:05:44 +0000 (10:05 +0000)
This feature was missing for unknown reasons.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4989>

src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_shader.c

index fc102e23cedcadde9255af3b01a06beb6181071d..bc8bcdb6ab36b5cfcec12f146bb82a7d69466103 100644 (file)
@@ -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,
        };
 }
index 217fc142de3b2e88534fe8861bca895560b93b15..7dfa89d65e9902a6659840b10fc2e0cf8b121051 100644 (file)
@@ -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,