From f64ba2d2dca76017d7bd49c4ba029efa19df53c1 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 20 Jun 2025 10:21:26 -0400 Subject: [PATCH] hk: don't advertise b4g4r4a4 format it is optional and broken with opaque_black Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/vulkan/hk_image.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/asahi/vulkan/hk_image.c b/src/asahi/vulkan/hk_image.c index aaff9f8e279..83e3a93b370 100644 --- a/src/asahi/vulkan/hk_image.c +++ b/src/asahi/vulkan/hk_image.c @@ -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);