mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
freedreno: add env var to override tiles-per-pipe
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6461>
This commit is contained in:
parent
688ca541e7
commit
0f3c12c0ab
1 changed files with 6 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
||||||
* Rob Clark <robclark@freedesktop.org>
|
* Rob Clark <robclark@freedesktop.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "util/debug.h"
|
||||||
#include "pipe/p_state.h"
|
#include "pipe/p_state.h"
|
||||||
#include "util/hash_table.h"
|
#include "util/hash_table.h"
|
||||||
#include "util/u_dump.h"
|
#include "util/u_dump.h"
|
||||||
|
|
@ -326,6 +327,11 @@ gmem_stateobj_init(struct fd_screen *screen, struct gmem_key *key)
|
||||||
tpp_x += 1;
|
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->maxpw = tpp_x;
|
||||||
gmem->maxph = tpp_y;
|
gmem->maxph = tpp_y;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue