Mesa (master): r600/sfn: use lower bool to int32 and lower int_tg4 only on shader clone

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 26 15:08:14 UTC 2021


Module: Mesa
Branch: master
Commit: dc51b75714df08a08cbd9661f6daa7cd2ef5ea1b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc51b75714df08a08cbd9661f6daa7cd2ef5ea1b

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Thu Dec 24 16:48:00 2020 +0100

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 <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9302>

---

 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)



More information about the mesa-commit mailing list