anv/video: copy from correct H264 scaling lists

Vulkan defines the scaling lists according to the H264 ITU spec, which
only defines ScalingList8x8[0] and ScalingList8x8[1] for
non-444 formats.

Reviewed-by: Lynne <dev@lynne.ee>
Reviewed-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24474>
This commit is contained in:
Benjamin Cheng
2023-08-03 10:27:34 -04:00
committed by Marge Bot
parent 0e4b1b8f23
commit 4755276baf
+2 -2
View File
@@ -1048,7 +1048,7 @@ anv_h264_decode_video(struct anv_cmd_buffer *cmd_buffer,
qm.DWordLength = 16;
qm.AVC = AVC_8x8_Inter_MATRIX;
for (unsigned q = 0; q < 64; q++)
qm.ForwardQuantizerMatrix[q] = pps->pScalingLists->ScalingList8x8[3][q];
qm.ForwardQuantizerMatrix[q] = pps->pScalingLists->ScalingList8x8[1][q];
}
}
} else if (sps->flags.seq_scaling_matrix_present_flag) {
@@ -1077,7 +1077,7 @@ anv_h264_decode_video(struct anv_cmd_buffer *cmd_buffer,
qm.DWordLength = 16;
qm.AVC = AVC_8x8_Inter_MATRIX;
for (unsigned q = 0; q < 64; q++)
qm.ForwardQuantizerMatrix[q] = sps->pScalingLists->ScalingList8x8[3][q];
qm.ForwardQuantizerMatrix[q] = sps->pScalingLists->ScalingList8x8[1][q];
}
}
} else {