radeon/video: add 4K support for decode/encode parameters
authorLeo Liu <leo.liu@amd.com>
Mon, 9 Mar 2015 20:24:48 +0000 (16:24 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 14 Aug 2015 13:02:30 +0000 (15:02 +0200)
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeon/radeon_video.c

index 826e0763c08e1b2ac13b999ebb5ea8b5285d1e04..65949fba3b9083f8dd02f9b0128b24cd6c6a7160 100644 (file)
@@ -214,9 +214,9 @@ int rvid_get_video_param(struct pipe_screen *screen,
                case PIPE_VIDEO_CAP_NPOT_TEXTURES:
                        return 1;
                case PIPE_VIDEO_CAP_MAX_WIDTH:
-                       return 2048;
+                       return (rscreen->family < CHIP_TONGA) ? 2048 : 4096;
                case PIPE_VIDEO_CAP_MAX_HEIGHT:
-                       return 1152;
+                       return (rscreen->family < CHIP_TONGA) ? 1152 : 2304;
                case PIPE_VIDEO_CAP_PREFERED_FORMAT:
                        return PIPE_FORMAT_NV12;
                case PIPE_VIDEO_CAP_PREFERS_INTERLACED:
@@ -268,9 +268,9 @@ int rvid_get_video_param(struct pipe_screen *screen,
        case PIPE_VIDEO_CAP_NPOT_TEXTURES:
                return 1;
        case PIPE_VIDEO_CAP_MAX_WIDTH:
-               return 2048;
+               return (rscreen->family < CHIP_TONGA) ? 2048 : 4096;
        case PIPE_VIDEO_CAP_MAX_HEIGHT:
-               return 1152;
+               return (rscreen->family < CHIP_TONGA) ? 1152 : 2304;
        case PIPE_VIDEO_CAP_PREFERED_FORMAT:
                return PIPE_FORMAT_NV12;
        case PIPE_VIDEO_CAP_PREFERS_INTERLACED: