Mesa (master): r600: Fix duplicated subexpression in r600_asm.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 26 06:30:48 UTC 2020


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

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Sat May 23 17:43:50 2020 +0200

r600: Fix duplicated subexpression in r600_asm.c

Fixes: 4422ce1b04c117f61394a6834cd7933f06ce4e1f
    r600: force new CF with TEX only if any texture value is written

Closes #3012

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5187>

---

 src/gallium/drivers/r600/r600_asm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index a604e74bb7e..8f710052c68 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -1452,7 +1452,7 @@ int r600_bytecode_add_tex(struct r600_bytecode *bc, const struct r600_bytecode_t
 		LIST_FOR_EACH_ENTRY(ttex, &bc->cf_last->tex, list) {
 			if (ttex->dst_gpr == ntex->src_gpr &&
                             (ttex->dst_sel_x < 4 || ttex->dst_sel_y < 4 ||
-                             ttex->dst_sel_z < 4 || ttex->dst_sel_z < 4)) {
+                             ttex->dst_sel_z < 4 || ttex->dst_sel_w < 4)) {
 				bc->force_add_cf = 1;
 				break;
 			}



More information about the mesa-commit mailing list