summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-07-25 13:40:02 -0700
committerRob Clark <[email protected]>2019-08-02 10:24:14 -0700
commitc179ded9cb1bc3e42b887c1d3362c86befc3bbcc (patch)
treec125d451b4c5a52e88ad5766382d7b5d1f18d5ac /src/gallium
parente2bb3e84ab87bab1c1ce3c703bb69fccc82225c3 (diff)
freedreno/gmem: small cleanup
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_gmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_gmem.c b/src/gallium/drivers/freedreno/freedreno_gmem.c
index 41fc1d0a0d4..f400f256a27 100644
--- a/src/gallium/drivers/freedreno/freedreno_gmem.c
+++ b/src/gallium/drivers/freedreno/freedreno_gmem.c
@@ -238,10 +238,10 @@ calculate_tiles(struct fd_batch *batch)
tpp_y = 6;
} else {
tpp_x = tpp_y = 1;
- while (div_round_up(nbins_y, tpp_y) > screen->num_vsc_pipes)
+ while (div_round_up(nbins_y, tpp_y) > npipes)
tpp_y += 2;
while ((div_round_up(nbins_y, tpp_y) *
- div_round_up(nbins_x, tpp_x)) > screen->num_vsc_pipes)
+ div_round_up(nbins_x, tpp_x)) > npipes)
tpp_x += 1;
}