anv: Always allocate cdf tables when independent profiles provided

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34866>
This commit is contained in:
Hyunjun Ko 2025-05-08 15:08:23 +09:00 committed by Marge Bot
parent b5e657da48
commit f4d480f808

View file

@ -913,6 +913,12 @@ add_video_buffers(struct anv_device *device,
ANV_OFFSET_IMPLICIT, av1_cdf_max_num_bytes, 4096, &image->av1_cdf_table);
}
}
} else {
/* Nothing to check if it's AV1 decoding, so we need to allocate av1
* tables all the time.
*/
ok = image_binding_grow(device, image, ANV_IMAGE_MEMORY_BINDING_PRIVATE,
ANV_OFFSET_IMPLICIT, av1_cdf_max_num_bytes, 4096, &image->av1_cdf_table);
}
return ok;