hk: readvertise required bgra4 format
spec dealt with. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36257>
This commit is contained in:
committed by
Marge Bot
parent
ca255cb703
commit
20e2267be5
@@ -40,11 +40,10 @@ hk_get_image_plane_format_features(struct hk_physical_device *pdev,
|
||||
{
|
||||
VkFormatFeatureFlags2 features = 0;
|
||||
|
||||
/* These optional formats need custom borders for opaque black, so hide for
|
||||
/* This optional format needs hacks 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 ||
|
||||
vk_format == VK_FORMAT_B4G4R4A4_UNORM_PACK16)
|
||||
if (vk_format == VK_FORMAT_A8_UNORM_KHR)
|
||||
return 0;
|
||||
|
||||
enum pipe_format p_format = hk_format_to_pipe_format(vk_format);
|
||||
|
||||
Reference in New Issue
Block a user