hasvk: Disable non-zero fast clears for 8xMSAA images
authorVäinö Mäkelä <vaino.o.makela@gmail.com>
Tue, 21 Feb 2023 12:39:21 +0000 (14:39 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Mar 2023 17:26:09 +0000 (17:26 +0000)
commite509afacf3fb277f944f6d4ebf9d88d4a27c6df6
tree6da8cae73b18fb7eb4c98c3f166b90c1c6bd744d
parentdc01f03d1b09f1deb99fb7cb749c6009f7583ec1
hasvk: Disable non-zero fast clears for 8xMSAA images

Using texelFetch to read samples from an 8xMSAA fast cleared image on
Haswell can read transparent black pixels around triangles from where
there should be none. This issue isn't present when using sample
shading, resolving the image using vkCmdResolveImage or in a copy the
image. The easiest way to fix this is by just disabling non-zero fast
clears for 8xMSAA images.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7587

Cc: mesa-stable
Reviewed-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21444>
src/intel/vulkan_hasvk/anv_image.c