mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
dffee5abc8
commit
01c59030e8
1 changed files with 3 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue