Module: Mesa
Branch: main
Commit: 5fd747a50248369c7332cd7640770fb2e05d0407
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5fd747a50248369c7332cd7640770fb2e05d0407

Author: Rhys Perry <pendingchao...@gmail.com>
Date:   Fri Nov 17 11:22:05 2023 +0000

radv: enable msad_4x8

This helps some FSR3 shaders.

Signed-off-by: Rhys Perry <pendingchao...@gmail.com>
Reviewed-by: Georg Lehmann <dadschoo...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26907>

---

 src/amd/vulkan/radv_shader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index b2753470291..a762fd5690d 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -114,6 +114,7 @@ get_nir_options_for_stage(struct radv_physical_device 
*device, gl_shader_stage s
       .has_pack_half_2x16_rtz = true,
       .has_bit_test = !device->use_llvm,
       .has_fmulz = true,
+      .has_msad = true,
       .max_unroll_iterations = 32,
       .max_unroll_iterations_aggressive = 128,
       .use_interpolated_input_intrinsics = true,

Reply via email to