Skip to content

anv: fix Gfx9 fast clears on srgb formats

What does this MR do and why?

anv: fix Gfx9 fast clears on srgb formats

Only MCS surfaces are affected because SRGB format are not listed as
supporting CCS compression.

Fixes CTS test :
  dEQP-VK.api.image_clearing.core.clear_color_attachment.single_layer.*_srgb_*sample_count_*
  dEQP-VK.api.image_clearing.dedicated_allocation.clear_color_attachment.single_layer.*srgb*

This is similar to what we did in Iris in f8961ea0 ("iris: Disable
sRGB fast-clears for non-0/1 values").

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 4cfb4f7d12 ("anv: support fast color clears on vkCmdClearAttachments")

Closes: #10003 (closed)

Merge request reports