Module: Mesa
Branch: staging/22.2
Commit: fc014e713a2da032464c58d791a86eb4819b0760
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc014e713a2da032464c58d791a86eb4819b0760

Author: Gert Wollny <[email protected]>
Date:   Tue Aug 23 17:31:57 2022 +0200

r600/sfn: Use a low number for unused target register

This reduces the number of registers reserved by the shader
units and makes more threads possible.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6856

Fixes: 79ca456b4837b3bc21cf9ef3c03c505c4b4909f6
   r600/sfn: rewrite NIR backend

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Filip Gawin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18212>
(cherry picked from commit bf4234d0887d4505f2aae825d23a0144c60e0240)

---

 .pick_status.json                              | 2 +-
 src/gallium/drivers/r600/sfn/sfn_instr_tex.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index 182ec43baf8..dafc147ebb5 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -10273,7 +10273,7 @@
         "description": "r600/sfn: Use a low number for unused target register",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": "79ca456b4837b3bc21cf9ef3c03c505c4b4909f6"
     },
diff --git a/src/gallium/drivers/r600/sfn/sfn_instr_tex.cpp 
b/src/gallium/drivers/r600/sfn/sfn_instr_tex.cpp
index fba7f1f39da..53bdfad8e82 100644
--- a/src/gallium/drivers/r600/sfn/sfn_instr_tex.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_instr_tex.cpp
@@ -682,7 +682,7 @@ bool TexInstr::emit_tex_txd(nir_tex_instr *tex, Inputs& 
src, Shader& shader)
                  << "' (" << __func__ << ")\n";
 
    auto dst = vf.dest_vec4(tex->dest, pin_group);
-   RegisterVec4 empty_dst(126, false, {0,0,0,0}, pin_group);
+   RegisterVec4 empty_dst(0, false, {0,0,0,0}, pin_group);
 
    auto swizzle = src.swizzle_from_ncomps(tex->coord_components);
 

Reply via email to