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

Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Dec 29 13:30:24 2020 -0500

zink: add env var to force uniform inlining

this is great for debugging/testing, but there's no great heuristics
for using it yet

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9888>

---

 src/gallium/drivers/zink/zink_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_screen.c 
b/src/gallium/drivers/zink/zink_screen.c
index 256f0326728..d8d80545a5b 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -1496,6 +1496,7 @@ zink_internal_create_screen(const struct 
pipe_screen_config *config)
       screen->driconf.dual_color_blend_by_location = 
driQueryOptionb(config->options, "dual_color_blend_by_location");
       //screen->driconf.inline_uniforms = driQueryOptionb(config->options, 
"radeonsi_inline_uniforms");
 #endif
+   screen->driconf.inline_uniforms = !!getenv("ZINK_INLINE_UNIFORMS");
 
    screen->total_video_mem = get_video_mem(screen);
    if (!os_get_total_physical_memory(&screen->total_mem))

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to