turnip: update "fetchsize" value to match fdl6_layout changes
authorJonathan Marek <jonathan@marek.ca>
Tue, 12 May 2020 15:26:05 +0000 (11:26 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 12 May 2020 17:25:38 +0000 (17:25 +0000)
commitf543d87f23555912110e2c0f67a57dcb99d94e08
treea56961824c6e2859cb3f4d9d783def38379fe528
parentf789c5975c83f12216cf915d9a791e654b3c9e15
turnip: update "fetchsize" value to match fdl6_layout changes

It seems this is actually a "minimum pitch" value. For example
TFETCH6_2_BYTE means a minimum pitch of 128 bytes for mipmap levels.

This fixes breakage with compressed formats. For example this test:

dEQP-VK.pipeline.sampler.view_type.2d.format.eac_r11_snorm_block.mipmap.linear.lod.equal_min_3_max_3

Fixes: a34b3fa198a4f ("freedreno/fdl: Align after dividing by block size")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5009>
src/freedreno/vulkan/tu_image.c