From 790093f62531563290f08a8a761f385ed46ce068 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 15 Apr 2025 12:49:28 +0200 Subject: [PATCH] panvk: enable dualSrcBlend This is already implemented, we just didn't report it. Reviewed-by: Boris Brezillon Part-of: --- docs/relnotes/new_features.txt | 1 + src/panfrost/vulkan/panvk_physical_device.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index 02e1f0607cc..f3d05a6ac73 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -37,3 +37,4 @@ uniformAndStorageBuffer8BitAccess on panvk MSAA with 8 and 16 sample counts on panvk KHR_spirv_1_4 on panvk/v10+ Mali G720 and G725 on Panfrost and panvk +dualSrcBlend on panvk diff --git a/src/panfrost/vulkan/panvk_physical_device.c b/src/panfrost/vulkan/panvk_physical_device.c index b86f5e77df0..484451ddc23 100644 --- a/src/panfrost/vulkan/panvk_physical_device.c +++ b/src/panfrost/vulkan/panvk_physical_device.c @@ -359,6 +359,7 @@ get_features(const struct panvk_physical_device *device, /* Vulkan 1.0 */ .depthClamp = true, .depthBiasClamp = true, + .dualSrcBlend = true, .robustBufferAccess = true, .fullDrawIndexUint32 = true, .imageCubeArray = true, @@ -758,8 +759,7 @@ get_device_properties(const struct panvk_instance *instance, .maxFragmentInputComponents = 128, /* 8 render targets. */ .maxFragmentOutputAttachments = 8, - /* We don't support dual source blending yet. */ - .maxFragmentDualSrcAttachments = 0, + .maxFragmentDualSrcAttachments = max_cbuf_atts, /* 8 render targets, 2^12 storage buffers and 2^8 storage images (see * above). */