Mesa (main): radeonsi: enable uniform inlining by default

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 8 18:55:48 UTC 2021


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Jul  7 23:36:32 2021 -0400

radeonsi: enable uniform inlining by default

I think there is no reason to keep this disabled because it improves
viewperf and it might improve other things.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11754>

---

 src/gallium/drivers/radeonsi/si_debug_options.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_debug_options.h b/src/gallium/drivers/radeonsi/si_debug_options.h
index b53f48a8799..81880be5950 100644
--- a/src/gallium/drivers/radeonsi/si_debug_options.h
+++ b/src/gallium/drivers/radeonsi/si_debug_options.h
@@ -1,4 +1,4 @@
-OPT_BOOL(inline_uniforms, false, "Optimize shaders by replacing uniforms with literals")
+OPT_BOOL(inline_uniforms, true, "Optimize shaders by replacing uniforms with literals")
 OPT_BOOL(aux_debug, false, "Generate ddebug_dumps for the auxiliary context")
 OPT_BOOL(sync_compile, false, "Always compile synchronously (will cause stalls)")
 OPT_BOOL(dump_shader_binary, false, "Dump shader binary as part of ddebug_dumps")



More information about the mesa-commit mailing list