From 1d4d7c0650a079f7cee07ff79a3444c2a0216ab3 Mon Sep 17 00:00:00 2001 From: dancingmirrors Date: Wed, 8 Jul 2026 13:18:33 -0600 Subject: [PATCH] hasvk: Haswell doesn't have the same DMV buffer as earlier generations. --- src/intel/vulkan_hasvk/anv_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan_hasvk/anv_image.c b/src/intel/vulkan_hasvk/anv_image.c index 3e02d4e..6d55e56 100644 --- a/src/intel/vulkan_hasvk/anv_image.c +++ b/src/intel/vulkan_hasvk/anv_image.c @@ -708,7 +708,7 @@ add_video_buffers(struct anv_device *device, * width, but scales with height. This works out to 64 bytes per MB, * or 8192 bytes per MB row (128 MBs * 64 bytes). */ - if (device->info->ver == 7) { + if (device->info->verx10 == 70) { /* However for frames wider than 128 MBs we need to make sure we * don't overrun and silently corrupt the buffer. * @@ -716,7 +716,7 @@ add_video_buffers(struct anv_device *device, */ size = (h_mb + 1) * MAX2(w_mb, 128u) * 64; } else { - /* XXX: Is this correct for Broadwell? */ + /* XXX: This needs more testing. */ size = w_mb * h_mb * 128; } }