summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2017-08-15 12:39:35 -0400
committerLeo Liu <[email protected]>2017-08-21 10:09:09 -0400
commitfceb52a23097e3762bedce730baea1913cfa58f3 (patch)
treef0e1a09706cce454b33c32411e9c4691ff48c012 /src
parente50ee6d4d59e46147b4ff0f1012f5d1d4ab92e06 (diff)
radeon/video: MJPEG not support stacked video buffers
So we have to detect it for reallocation of de-interlaced buffers Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeon/radeon_video.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c
index 857a714f993..7c2553364ee 100644
--- a/src/gallium/drivers/radeon/radeon_video.c
+++ b/src/gallium/drivers/radeon/radeon_video.c
@@ -311,8 +311,12 @@ int rvid_get_video_param(struct pipe_screen *screen,
return codec != PIPE_VIDEO_FORMAT_MPEG12 &&
rscreen->family > CHIP_RV770;
} else {
- if (u_reduce_video_profile(profile) == PIPE_VIDEO_FORMAT_HEVC)
+ enum pipe_video_format format = u_reduce_video_profile(profile);
+
+ if (format == PIPE_VIDEO_FORMAT_HEVC)
return false; //The firmware doesn't support interlaced HEVC.
+ else if (format == PIPE_VIDEO_FORMAT_JPEG)
+ return false;
return true;
}
case PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE: