freedreno/gmem: small cleanup
[mesa.git] / src / gallium / drivers / freedreno / freedreno_gmem.c
index 41fc1d0a0d4e109c83f5297903fa06144feb9a71..f400f256a27e48499cf09a1664d0649213c18f5c 100644 (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;
        }