mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
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: a34b3fa198 ("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>
This commit is contained in:
parent
f789c5975c
commit
f543d87f23
1 changed files with 1 additions and 4 deletions
|
|
@ -151,10 +151,7 @@ tu_image_create(VkDevice _device,
|
||||||
enum a6xx_tex_fetchsize
|
enum a6xx_tex_fetchsize
|
||||||
tu6_fetchsize(VkFormat format)
|
tu6_fetchsize(VkFormat format)
|
||||||
{
|
{
|
||||||
if (vk_format_description(format)->layout == UTIL_FORMAT_LAYOUT_ASTC)
|
switch (vk_format_get_blocksize(format)) {
|
||||||
return TFETCH6_16_BYTE;
|
|
||||||
|
|
||||||
switch (vk_format_get_blocksize(format) / vk_format_get_blockwidth(format)) {
|
|
||||||
case 1: return TFETCH6_1_BYTE;
|
case 1: return TFETCH6_1_BYTE;
|
||||||
case 2: return TFETCH6_2_BYTE;
|
case 2: return TFETCH6_2_BYTE;
|
||||||
case 4: return TFETCH6_4_BYTE;
|
case 4: return TFETCH6_4_BYTE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue