i965/miptree: Drop an if case from retile_as_linear
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 23 May 2018 22:50:14 +0000 (15:50 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 13 Jul 2018 02:16:30 +0000 (19:16 -0700)
commit3df201e3e843b0c4fe810360f7e8b81de9c6a92a
tree4f0ddb36d73200fbd7fc776749837552ff844826
parent0ab2541943478ae39112760198a1fbf71fd48986
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>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c