[Mesa-dev] [PATCH] radeon/uvd: increase max height to 4096 for VI and newer

Alex Deucher alexdeucher at gmail.com
Mon Mar 7 15:15:08 UTC 2016


On Mon, Mar 7, 2016 at 9:51 AM, Leo Liu <leo.liu at amd.com> wrote:
> From: Tamil velan <Tamil-Velan.Jayakumar at amd.com>
>
> With this issue 'mpv --hwdec=vdpau --vo=vdpau <stream>' fails
> for vdpau decode if the stream height is 4096. Vdpau decode of
> height upto 4096 is necessary usecase on amdgpu driver for VI
> and newer platforms.
>
> The fix is in driver specific implementation of "Decoder
> Query Capabilities" API to return 4096 for VI and newer
> platforms. With this fix vdpauinfo reports height support as
> 4096 and mpv for vdpau decode works fine for 4096 height streams.
>
> Signed-off-by: Tamil velan <Tamil-Velan.Jayakumar at amd.com>
> Reviewed-by: Christian König <christian.koenig at amd.com>
> Cc: "11.0 11.1 11.2" <mesa-stable at lists.freedesktop.org>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>


> ---
>  src/gallium/drivers/radeon/radeon_video.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c
> index ec29d8c..e24bbf8 100644
> --- a/src/gallium/drivers/radeon/radeon_video.c
> +++ b/src/gallium/drivers/radeon/radeon_video.c
> @@ -257,7 +257,7 @@ int rvid_get_video_param(struct pipe_screen *screen,
>         case PIPE_VIDEO_CAP_MAX_WIDTH:
>                 return (rscreen->family < CHIP_TONGA) ? 2048 : 4096;
>         case PIPE_VIDEO_CAP_MAX_HEIGHT:
> -               return (rscreen->family < CHIP_TONGA) ? 1152 : 2304;
> +               return (rscreen->family < CHIP_TONGA) ? 1152 : 4096;
>         case PIPE_VIDEO_CAP_PREFERED_FORMAT:
>                 return PIPE_FORMAT_NV12;
>         case PIPE_VIDEO_CAP_PREFERS_INTERLACED:
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list