tu,freedreno: Forbid blit event for R8G8_SRGB due to gpu faults

Same cause as for other R8G8 formats - msaa resolve via
blit event causes gpu fault.

Fixes:
 dEQP-VK.api.image_clearing.*.clear_color_attachment.*.r8g8_srgb_*

Fixes: 029919f3c8
("tu: allow using resolve engine for SRGB MSAA resolves")

Cc: mesa-stable

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24277>
This commit is contained in:
Danylo Piliaiev 2023-07-21 13:27:38 +02:00 committed by Marge Bot
parent f3d948eb6c
commit eeb1fd90fc
2 changed files with 2 additions and 0 deletions

View file

@ -3295,6 +3295,7 @@ blit_can_resolve(VkFormat format)
case VK_FORMAT_R8G8_UNORM:
case VK_FORMAT_R8G8_UINT:
case VK_FORMAT_R8G8_SINT:
case VK_FORMAT_R8G8_SRGB:
/* TODO: this one should be able to work? */
case VK_FORMAT_D24_UNORM_S8_UINT:
return false;

View file

@ -1486,6 +1486,7 @@ blit_can_resolve(enum pipe_format format)
case PIPE_FORMAT_R8G8_UNORM:
case PIPE_FORMAT_R8G8_UINT:
case PIPE_FORMAT_R8G8_SINT:
case PIPE_FORMAT_R8G8_SRGB:
/* TODO: this one should be able to work? */
case PIPE_FORMAT_Z24_UNORM_S8_UINT:
return false;