From d2c24a0d8bb931543ff489a4e5e3eca5b473992b Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Tue, 3 Feb 2026 14:09:29 +0100 Subject: [PATCH] anv/video: disable encoder on untested platforms Not enough tested on over Gen12 platforms. Turns out to be not working on DG2, for example. Cc: mesa-stable Closes: #14449 Signed-off-by: Hyunjun Ko Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_physical_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_physical_device.c b/src/intel/vulkan/anv_physical_device.c index 15a0ed75077..a0128a4d74a 100644 --- a/src/intel/vulkan/anv_physical_device.c +++ b/src/intel/vulkan/anv_physical_device.c @@ -147,8 +147,11 @@ get_device_extensions(const struct anv_physical_device *device, struct vk_device_extension_table *ext) { const bool rt_enabled = ANV_SUPPORT_RT && device->info.has_ray_tracing; + const bool hw_video_encode_supported = device->info.verx10 < 125; + const bool video_encode_enabled = hw_video_encode_supported && + (device->instance->debug & ANV_DEBUG_VIDEO_ENCODE); const bool video_decode_enabled = device->instance->debug & ANV_DEBUG_VIDEO_DECODE; - const bool video_encode_enabled = device->instance->debug & ANV_DEBUG_VIDEO_ENCODE; + *ext = (struct vk_device_extension_table) { .KHR_8bit_storage = true,