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 <cgmeiner@igalia.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39913>
This commit is contained in:
Christian Gmeiner 2026-02-16 12:44:40 +01:00
parent 222fc6a1c1
commit 0e32fbc305
3 changed files with 6 additions and 1 deletions

View file

@ -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)

View file

@ -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

View file

@ -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,