freedreno/gmem: small cleanup

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Rob Clark 2019-07-25 13:40:02 -07:00
parent e2bb3e84ab
commit c179ded9cb
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}