From 0f3c12c0ab05bd4f481f2b4c3397e1ddae1fb95d Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 25 Aug 2020 12:23:38 -0700 Subject: [PATCH] freedreno: add env var to override tiles-per-pipe Signed-off-by: Rob Clark Part-of: --- src/gallium/drivers/freedreno/freedreno_gmem.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/freedreno/freedreno_gmem.c b/src/gallium/drivers/freedreno/freedreno_gmem.c index 6119f564400..457a5c8f76c 100644 --- a/src/gallium/drivers/freedreno/freedreno_gmem.c +++ b/src/gallium/drivers/freedreno/freedreno_gmem.c @@ -24,6 +24,7 @@ * Rob Clark */ +#include "util/debug.h" #include "pipe/p_state.h" #include "util/hash_table.h" #include "util/u_dump.h" @@ -326,6 +327,11 @@ gmem_stateobj_init(struct fd_screen *screen, struct gmem_key *key) tpp_x += 1; } +#ifdef DEBUG + tpp_x = env_var_as_unsigned("TPP_X", tpp_x); + tpp_y = env_var_as_unsigned("TPP_Y", tpp_x); +#endif + gmem->maxpw = tpp_x; gmem->maxph = tpp_y; -- 2.30.2