Mesa (main): vl: add st_rps_bits for HEVC decode

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat May 29 21:15:43 UTC 2021


Module: Mesa
Branch: main
Commit: db0bf188d987f3df2264cb370b56f75746c3f0d1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db0bf188d987f3df2264cb370b56f75746c3f0d1

Author: Boyuan Zhang <boyuan.zhang at amd.com>
Date:   Wed May 19 14:23:40 2021 -0400

vl: add st_rps_bits for HEVC decode

st_rps_bits is used for accelorater to skip parsing the short_term_ref_pic_set
structure, which is needed for HEVC decode.

Signed-off-by: Boyuan Zhang <boyuan.zhang at amd.com>
Reviewed-by: Leo Liu <leo.liu at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10889>

---

 src/gallium/include/pipe/p_video_state.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h
index 002c293298b..08239b3a4da 100644
--- a/src/gallium/include/pipe/p_video_state.h
+++ b/src/gallium/include/pipe/p_video_state.h
@@ -583,6 +583,7 @@ struct pipe_h265_pps
    uint8_t lists_modification_present_flag;
    uint8_t log2_parallel_merge_level_minus2;
    uint8_t slice_segment_header_extension_present_flag;
+   uint16_t st_rps_bits;
 };
 
 struct pipe_h265_picture_desc
@@ -611,6 +612,7 @@ struct pipe_h265_picture_desc
    uint8_t RefPicSetLtCurr[8];
    uint8_t RefPicList[2][15];
    bool UseRefPicList;
+   bool UseStRpsBits;
 };
 
 struct pipe_mjpeg_picture_desc



More information about the mesa-commit mailing list