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

Leo Liu leo.liu at amd.com
Tue Aug 15 20:08:33 UTC 2017


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

Signed-off-by: Leo Liu <leo.liu 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 0cff2a0df9..6196724104 100644
--- a/src/gallium/drivers/radeon/radeon_video.c
+++ b/src/gallium/drivers/radeon/radeon_video.c
@@ -305,8 +305,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_MJPEG)
+				return false;
 			return true;
 		}
 	case PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE:
-- 
2.11.0



More information about the mesa-dev mailing list