[Mesa-dev] [PATCH 15/20] radeon/video: MJPEG not support stacked video buffers

Leo Liu leo.liu at amd.com
Wed Aug 16 17:53:18 UTC 2017


So we have to detect it for relocation of de-interlaced buffers

Signed-off-by: Leo Liu <leo.liu at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
---
 src/gallium/drivers/radeon/radeon_video.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c
index 21c57d2c0f..bec74715aa 100644
--- a/src/gallium/drivers/radeon/radeon_video.c
+++ b/src/gallium/drivers/radeon/radeon_video.c
@@ -313,8 +313,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:
-- 
2.11.0



More information about the mesa-dev mailing list