Mesa (main): r300: avoid searching for temp variable twice

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 7 03:09:50 UTC 2021


Module: Mesa
Branch: main
Commit: 7d95681ea68acfc58524caab94fd0fbc4c2dee84
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d95681ea68acfc58524caab94fd0fbc4c2dee84

Author: Filip Gawin <filip.gawin at zoho.com>
Date:   Wed Oct  6 18:16:11 2021 +0200

r300: avoid searching for temp variable twice

(when once is enough)

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13229>

---

 src/gallium/drivers/r300/compiler/radeon_program_alu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r300/compiler/radeon_program_alu.c b/src/gallium/drivers/r300/compiler/radeon_program_alu.c
index c8aabc255d0..9d96307f117 100644
--- a/src/gallium/drivers/r300/compiler/radeon_program_alu.c
+++ b/src/gallium/drivers/r300/compiler/radeon_program_alu.c
@@ -858,7 +858,7 @@ static void transform_r300_vertex_SSG(struct radeon_compiler* c,
 	 *   SLT tmp1, x, 0;
 	 *   ADD result, tmp0, -tmp1;
 	 */
-	struct rc_dst_register dst0 = try_to_reuse_dst(c, inst);
+	struct rc_dst_register dst0;
 	unsigned tmp1;
 
 	/* 0 < x */



More information about the mesa-commit mailing list