mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
i965/miptree: Drop an if case from retile_as_linear
Drop an if statement whose predicate never evaluates to true. row_pitch
belongs to a surface with non-linear tiling. According to
isl_calc_tiled_min_row_pitch, the pitch is a multiple of the tile width.
By looking at isl_tiling_get_info, we see that non-linear tilings have
widths greater than or equal to 128B.
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 3df201e3e8)
This commit is contained in:
parent
b9c903b406
commit
32331a3efc
1 changed files with 0 additions and 4 deletions
|
|
@ -518,10 +518,6 @@ need_to_retile_as_linear(struct brw_context *brw, unsigned row_pitch,
|
||||||
if (tiling == ISL_TILING_LINEAR)
|
if (tiling == ISL_TILING_LINEAR)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* If the width is much smaller than a tile, don't bother tiling. */
|
|
||||||
if (row_pitch < 64)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if (ALIGN(row_pitch, 512) >= 32768) {
|
if (ALIGN(row_pitch, 512) >= 32768) {
|
||||||
perf_debug("row pitch %u too large to blit, falling back to untiled",
|
perf_debug("row pitch %u too large to blit, falling back to untiled",
|
||||||
row_pitch);
|
row_pitch);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue