[Mesa-dev] [PATCH v2] st/va: remove assert for single slice

Christian König deathsimple at vodafone.de
Fri Feb 10 15:37:53 UTC 2017


Am 10.02.2017 um 16:36 schrieb Nayan Deshmukh:
> we anyway allow for multiple slices
>
> v2: do not remove assert to check for buf->size
>
> Signed-off-by: Nayan Deshmukh <nayan26deshmukh at gmail.com>

Reviewed-by: Christian König <christian.koenig at amd.com>.

> ---
>   src/gallium/state_trackers/va/picture_mpeg12.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/va/picture_mpeg12.c b/src/gallium/state_trackers/va/picture_mpeg12.c
> index 812e9e5..1e5a9c7 100644
> --- a/src/gallium/state_trackers/va/picture_mpeg12.c
> +++ b/src/gallium/state_trackers/va/picture_mpeg12.c
> @@ -81,6 +81,6 @@ void vlVaHandleIQMatrixBufferMPEG12(vlVaContext *context, vlVaBuffer *buf)
>   
>   void vlVaHandleSliceParameterBufferMPEG12(vlVaContext *context, vlVaBuffer *buf)
>   {
> -   assert(buf->size >= sizeof(VASliceParameterBufferMPEG2) && buf->num_elements == 1);
> +   assert(buf->size >= sizeof(VASliceParameterBufferMPEG2));
>      context->desc.mpeg12.num_slices += buf->num_elements;
>   }




More information about the mesa-dev mailing list