mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
frontends/va: Store slice types for H264 decode
Cc: mesa-stable
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29055>
(cherry picked from commit 9837dab4bd)
This commit is contained in:
parent
450ad166c0
commit
93572f4e31
3 changed files with 3 additions and 1 deletions
|
|
@ -584,7 +584,7 @@
|
|||
"description": "frontends/va: Store slice types for H264 decode",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -186,6 +186,7 @@ void vlVaHandleSliceParameterBufferH264(vlVaContext *context, vlVaBuffer *buf)
|
|||
assert(context->desc.h264.slice_count < max_pipe_h264_slices);
|
||||
|
||||
context->desc.h264.slice_parameter.slice_info_present = true;
|
||||
context->desc.h264.slice_parameter.slice_type[context->desc.h264.slice_count] = h264->slice_type;
|
||||
context->desc.h264.slice_parameter.slice_data_size[context->desc.h264.slice_count] = h264->slice_data_size;
|
||||
context->desc.h264.slice_parameter.slice_data_offset[context->desc.h264.slice_count] = h264->slice_data_offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -411,6 +411,7 @@ struct pipe_h264_picture_desc
|
|||
{
|
||||
bool slice_info_present;
|
||||
uint32_t slice_count;
|
||||
uint8_t slice_type[128];
|
||||
uint32_t slice_data_size[128];
|
||||
uint32_t slice_data_offset[128];
|
||||
enum pipe_slice_buffer_placement_type slice_data_flag[128];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue