From 0e32fbc305257d0ce42ecadfadd7301614a6addf Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Mon, 16 Feb 2026 12:44:40 +0100 Subject: [PATCH] panvk: Advertise VK_EXT_color_write_enable The common Vulkan runtime already provides full support for this extension (pipeline state parsing, dynamic command handler, dirty tracking), and panvk already consumes color_write_enables in blend descriptor emission and fs_required() determination. Just advertise the extension and feature. Signed-off-by: Christian Gmeiner Reviewed-by: Erik Faye-Lund Part-of: --- docs/features.txt | 2 +- docs/relnotes/new_features.txt | 1 + src/panfrost/vulkan/panvk_vX_physical_device.c | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index dca32cce5a5..f0af8c9cfbb 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -604,7 +604,7 @@ Khronos extensions that are not part of any Vulkan version: VK_EXT_border_color_swizzle DONE (anv, hasvk, hk, lvp, nvk, panvk, pvr, radv/gfx10+, tu, v3dv, vn) VK_EXT_buffer_device_address DONE (anv, dzn/sm6.6+, hasvk, hk, nvk, panvk, radv, vn) VK_EXT_calibrated_timestamps DONE (anv, hasvk, hk, kk, nvk, panvk/v10+, lvp, radv, vn, tu/a750+) - VK_EXT_color_write_enable DONE (anv, hasvk, hk, lvp, nvk, pvr, radv, tu, v3dv, vn) + VK_EXT_color_write_enable DONE (anv, hasvk, hk, lvp, nvk, panvk, pvr, radv, tu, v3dv, vn) VK_EXT_conditional_rendering DONE (anv, hasvk, lvp, nvk, radv, tu, vn) VK_EXT_conservative_rasterization DONE (anv, nvk, radv, vn, tu/a7xx+) VK_EXT_custom_border_color DONE (anv, hasvk, hk, lvp, nvk, panvk, pvr, radv, tu, v3dv, vn) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index 2cb47b4d9f4..5eb8ceb8d4c 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -15,3 +15,4 @@ GL_EXT_shader_image_load_store on panfrost VK_KHR_swapchain_mutable_format on panvk VK_EXT_astc_decode_mode on panvk VK_KHR_copy_memory_indirect on nvk +VK_EXT_color_write_enable on panvk diff --git a/src/panfrost/vulkan/panvk_vX_physical_device.c b/src/panfrost/vulkan/panvk_vX_physical_device.c index 85962aab8e5..316e34730c5 100644 --- a/src/panfrost/vulkan/panvk_vX_physical_device.c +++ b/src/panfrost/vulkan/panvk_vX_physical_device.c @@ -133,6 +133,7 @@ panvk_per_arch(get_physical_device_extensions)( .EXT_buffer_device_address = true, .EXT_calibrated_timestamps = device->kmod.dev->props.gpu_can_query_timestamp, + .EXT_color_write_enable = true, .EXT_custom_border_color = true, .EXT_depth_bias_control = true, .EXT_depth_clamp_zero_one = true, @@ -473,6 +474,9 @@ panvk_per_arch(get_physical_device_features)( .formatA4R4G4B4 = true, .formatA4B4G4R4 = true, + /* VK_EXT_color_write_enable */ + .colorWriteEnable = true, + /* VK_EXT_custom_border_color */ .customBorderColors = true,