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

Author: Gert Wollny <[email protected]>
Date:   Wed Dec 23 22:42:45 2020 +0100

r600/sfn: use lowering pass for cube textures

Signed-off-by: Gert Wollny <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9302>

---

 src/gallium/drivers/r600/sfn/sfn_nir.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r600/sfn/sfn_nir.cpp 
b/src/gallium/drivers/r600/sfn/sfn_nir.cpp
index b7e5324d608..0767f1bb71a 100644
--- a/src/gallium/drivers/r600/sfn/sfn_nir.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_nir.cpp
@@ -840,6 +840,7 @@ bool r600_lower_to_scalar_instr_filter(const nir_instr 
*instr, const void *)
    case nir_op_fdot2:
    case nir_op_fdot3:
    case nir_op_fdot4:
+   case nir_op_cube_r600:
       return false;
    case nir_op_bany_fnequal2:
    case nir_op_ball_fequal2:
@@ -890,8 +891,8 @@ int r600_shader_from_nir(struct r600_context *rctx,
    };
    NIR_PASS_V(sel->nir, nir_lower_tex, &lower_tex_options);
    NIR_PASS_V(sel->nir, r600::r600_nir_lower_txl_txf_array_or_cube);
+   NIR_PASS_V(sel->nir, r600::r600_nir_lower_cube_to_2darray);
 
-   NIR_PASS_V(sel->nir, r600_nir_lower_int_tg4);
    NIR_PASS_V(sel->nir, r600_nir_lower_pack_unpack_2x16);
 
    nir_variable_mode io_modes = nir_var_uniform;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to