From dc51b75714df08a08cbd9661f6daa7cd2ef5ea1b Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 24 Dec 2020 16:48:00 +0100 Subject: [PATCH] r600/sfn: use lower bool to int32 and lower int_tg4 only on shader clone These changes should not be visible to shader variants that may go through the optimization another time. Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_nir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r600/sfn/sfn_nir.cpp b/src/gallium/drivers/r600/sfn/sfn_nir.cpp index 307f1b4ebfe..b7e5324d608 100644 --- a/src/gallium/drivers/r600/sfn/sfn_nir.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_nir.cpp @@ -964,6 +964,7 @@ int r600_shader_from_nir(struct r600_context *rctx, while (optimize_once(sh, true)); NIR_PASS_V(sh, nir_lower_bool_to_int32); + NIR_PASS_V(sh, r600_nir_lower_int_tg4); NIR_PASS_V(sh, nir_opt_algebraic_late); if (sh->info.stage == MESA_SHADER_FRAGMENT)