mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
anv: Use vk_video_derive_h265_scaling_list
Signed-off-by: Hyunjun Ko <zzoon@igalia.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34096>
This commit is contained in:
parent
f31a33905a
commit
2b0df6c564
1 changed files with 5 additions and 6 deletions
|
|
@ -471,12 +471,11 @@ anv_h265_decode_video(struct anv_cmd_buffer *cmd_buffer,
|
|||
#endif
|
||||
}
|
||||
|
||||
if (sps->flags.scaling_list_enabled_flag) {
|
||||
if (pps->flags.pps_scaling_list_data_present_flag) {
|
||||
scaling_list(cmd_buffer, pps->pScalingLists);
|
||||
} else if (sps->flags.sps_scaling_list_data_present_flag) {
|
||||
scaling_list(cmd_buffer, sps->pScalingLists);
|
||||
}
|
||||
const StdVideoH265ScalingLists *scaling_lists = NULL;
|
||||
vk_video_derive_h265_scaling_list(sps, pps, &scaling_lists);
|
||||
|
||||
if (scaling_lists) {
|
||||
scaling_list(cmd_buffer, scaling_lists);
|
||||
} else {
|
||||
for (uint8_t size = 0; size < 4; size++) {
|
||||
for (uint8_t pred = 0; pred < 2; pred++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue