Mesa (main): radv: fix swizzles after nir_opt_algebraic_late

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 30 17:22:56 UTC 2022


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

Author: Daniel Schürmann <daniel at schuermann.dev>
Date:   Tue Jun 28 15:18:12 2022 +0200

radv: fix swizzles after nir_opt_algebraic_late

Fixes: 2e895f8b0496f9f15359a5d98ef722d3d9753bc4 ('radv: vectorize nir_op_fabs')
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17279>

---

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

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 36dce343fd5..a08a6cef014 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -4917,6 +4917,7 @@ radv_create_shaders(struct radv_pipeline *pipeline, struct radv_pipeline_layout
                     radv_use_llvm_for_stage(device, i));
          radv_optimize_nir_algebraic(
             stages[i].nir, io_to_mem || lowered_ngg || i == MESA_SHADER_COMPUTE || i == MESA_SHADER_TASK);
+         NIR_PASS(_, stages[i].nir, nir_lower_alu_width, opt_vectorize_callback, device);
 
          if (stages[i].nir->info.bit_sizes_int & (8 | 16)) {
             if (device->physical_device->rad_info.gfx_level >= GFX8) {



More information about the mesa-commit mailing list