mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
b5e657da48
commit
f4d480f808
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue