mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 18:40:42 +01:00
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:
parent
3afd675310
commit
f64ba2d2dc
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue