hasvk: Haswell doesn't have the same DMV buffer as earlier generations.

This commit is contained in:
dancingmirrors authored and elwrcl committed 2026-07-21 22:25:27 +03:00
1 parent 564cead081
commit 1d4d7c0650
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}
}