It will still support 8 bits dithering mode decode.
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12307>
}
}
- result.p010_mode = 0;
- result.msb_mode = 0;
- if (!pic->picture_parameter.bit_depth_idx) {
- result.luma_10to8 = 0;
- result.chroma_10to8 = 0;
- } else {
- result.luma_10to8 = 1;
- result.chroma_10to8 = 1;
+ if (pic->picture_parameter.bit_depth_idx) {
+ if (target->buffer_format == PIPE_FORMAT_P010 || target->buffer_format == PIPE_FORMAT_P016) {
+ result.p010_mode = 1;
+ result.msb_mode = 1;
+ } else {
+ result.luma_10to8 = 1;
+ result.chroma_10to8 = 1;
+ }
}
result.preskip_segid = 0;