Mesa (main): r600/sfn: Ignore precision when linking

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat May 15 08:21:01 UTC 2021


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

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Mon May 10 08:56:28 2021 +0200

r600/sfn: Ignore precision when linking

There doesn't seem to be any speciifc support for passing arount
mediump and lowp data, so when linking these specifiers can be ignored
theerby saving IO instructions.

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

---

 src/gallium/drivers/r600/r600_pipe_common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c
index 9599ba7af2b..68430748e13 100644
--- a/src/gallium/drivers/r600/r600_pipe_common.c
+++ b/src/gallium/drivers/r600/r600_pipe_common.c
@@ -1334,6 +1334,7 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen,
 		.lower_find_msb_to_reverse = true,
                 .lower_to_scalar = true,
                 .lower_to_scalar_filter = r600_lower_to_scalar_instr_filter,
+                .linker_ignore_precision = true,
 	};
 
 	rscreen->nir_options = nir_options;



More information about the mesa-commit mailing list