frontends/va: remove unused slice_param_idx variable
slice_param_idx was added to handle multiple slice params. it's not used anymore. Signed-off-by: Sajeesh Sidharthan <sajeesh.sidharthan@amd.com> Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19877>
This commit is contained in:

committed by
Marge Bot

parent
3061bc792d
commit
8d8caa44bd
@@ -261,7 +261,7 @@ handleIQMatrixBuffer(vlVaContext *context, vlVaBuffer *buf)
|
||||
}
|
||||
|
||||
static void
|
||||
handleSliceParameterBuffer(vlVaContext *context, vlVaBuffer *buf, unsigned num_slice_buffers, unsigned num_slices)
|
||||
handleSliceParameterBuffer(vlVaContext *context, vlVaBuffer *buf, unsigned num_slices)
|
||||
{
|
||||
switch (u_reduce_video_profile(context->templat.profile)) {
|
||||
case PIPE_VIDEO_FORMAT_MPEG12:
|
||||
@@ -293,7 +293,7 @@ handleSliceParameterBuffer(vlVaContext *context, vlVaBuffer *buf, unsigned num_s
|
||||
break;
|
||||
|
||||
case PIPE_VIDEO_FORMAT_AV1:
|
||||
vlVaHandleSliceParameterBufferAV1(context, buf, num_slice_buffers, num_slices);
|
||||
vlVaHandleSliceParameterBufferAV1(context, buf, num_slices);
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -694,7 +694,6 @@ vlVaRenderPicture(VADriverContextP ctx, VAContextID context_id, VABufferID *buff
|
||||
VAStatus vaStatus = VA_STATUS_SUCCESS;
|
||||
|
||||
unsigned i;
|
||||
unsigned slice_param_idx = 0;
|
||||
unsigned slice_idx = 0;
|
||||
|
||||
if (!ctx)
|
||||
@@ -740,14 +739,10 @@ vlVaRenderPicture(VADriverContextP ctx, VAContextID context_id, VABufferID *buff
|
||||
/* Some apps like gstreamer send all the slices at once
|
||||
and some others send individual VASliceParameterBufferType buffers
|
||||
|
||||
slice_param_idx is the zero based count of VASliceParameterBufferType
|
||||
(including multiple buffers with num_elements > 1) received
|
||||
before this call to handleSliceParameterBuffer
|
||||
|
||||
slice_idx is the zero based number of total slices received
|
||||
before this call to handleSliceParameterBuffer
|
||||
*/
|
||||
handleSliceParameterBuffer(context, buf, slice_param_idx++, slice_idx);
|
||||
handleSliceParameterBuffer(context, buf, slice_idx);
|
||||
slice_idx += buf->num_elements;
|
||||
} break;
|
||||
|
||||
|
@@ -380,7 +380,7 @@ void vlVaHandlePictureParameterBufferAV1(vlVaDriver *drv, vlVaContext *context,
|
||||
}
|
||||
}
|
||||
|
||||
void vlVaHandleSliceParameterBufferAV1(vlVaContext *context, vlVaBuffer *buf, unsigned num_slice_buffers, unsigned num_slices)
|
||||
void vlVaHandleSliceParameterBufferAV1(vlVaContext *context, vlVaBuffer *buf, unsigned num_slices)
|
||||
{
|
||||
for (uint32_t buffer_idx = 0; buffer_idx < buf->num_elements; buffer_idx++) {
|
||||
uint32_t slice_index =
|
||||
|
@@ -512,7 +512,7 @@ void vlVaHandlePictureParameterBufferVP9(vlVaDriver *drv, vlVaContext *context,
|
||||
void vlVaHandleSliceParameterBufferVP9(vlVaContext *context, vlVaBuffer *buf);
|
||||
void vlVaDecoderVP9BitstreamHeader(vlVaContext *context, vlVaBuffer *buf);
|
||||
void vlVaHandlePictureParameterBufferAV1(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
|
||||
void vlVaHandleSliceParameterBufferAV1(vlVaContext *context, vlVaBuffer *buf, unsigned num_slice_buffers, unsigned num_slices);
|
||||
void vlVaHandleSliceParameterBufferAV1(vlVaContext *context, vlVaBuffer *buf, unsigned num_slices);
|
||||
void getEncParamPresetH264(vlVaContext *context);
|
||||
void getEncParamPresetH265(vlVaContext *context);
|
||||
void vlVaHandleVAEncMiscParameterTypeQualityLevel(struct pipe_enc_quality_modes *p, vlVaQualityBits *in);
|
||||
|
Reference in New Issue
Block a user