hk: don't advertise b4g4r4a4 format

it is optional and broken with opaque_black

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658>
This commit is contained in:
Alyssa Rosenzweig 2025-06-20 10:21:26 -04:00 committed by Marge Bot
parent 3afd675310
commit f64ba2d2dc

View file

@ -40,10 +40,11 @@ hk_get_image_plane_format_features(struct hk_physical_device *pdev,
{
VkFormatFeatureFlags2 features = 0;
/* A8 with opaque black needs custom borders, so hide for performance. We
* might specially enable this for Proton / behind a driconf.
/* These optional formats need custom borders for opaque black, so hide for
* performance. We might specially enable this for Proton / behind a driconf.
*/
if (vk_format == VK_FORMAT_A8_UNORM_KHR)
if (vk_format == VK_FORMAT_A8_UNORM_KHR ||
vk_format == VK_FORMAT_B4G4R4A4_UNORM_PACK16)
return 0;
enum pipe_format p_format = hk_format_to_pipe_format(vk_format);