hk: clarify A8_UNORM issue

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35189>
This commit is contained in:
Alyssa Rosenzweig 2025-05-30 08:38:27 -04:00 committed by Marge Bot
parent dffee5abc8
commit 01c59030e8

View file

@ -40,15 +40,11 @@ hk_get_image_plane_format_features(struct hk_physical_device *pdev,
{
VkFormatFeatureFlags2 features = 0;
/* Conformance fails with these optional formats. Just drop them for now.
* TODO: Investigate later if we have a use case.
/* A8 with opaque black needs custom borders, so hide for performance. We
* might specially enable this for Proton / behind a driconf.
*/
switch (vk_format) {
case VK_FORMAT_A8_UNORM_KHR:
if (vk_format == VK_FORMAT_A8_UNORM_KHR)
return 0;
default:
break;
}
enum pipe_format p_format = hk_format_to_pipe_format(vk_format);
if (p_format == PIPE_FORMAT_NONE)