diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-graphics/mesa/mesa/0025-st-vdpau-add-h264-decoder-level-support.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-graphics/mesa/mesa/0025-st-vdpau-add-h264-decoder-level-support.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-graphics/mesa/mesa/0025-st-vdpau-add-h264-decoder-level-support.patch b/meta-amdfalconx86/recipes-graphics/mesa/mesa/0025-st-vdpau-add-h264-decoder-level-support.patch new file mode 100644 index 00000000..729d11cc --- /dev/null +++ b/meta-amdfalconx86/recipes-graphics/mesa/mesa/0025-st-vdpau-add-h264-decoder-level-support.patch @@ -0,0 +1,34 @@ +From 2ccc95646ab8c004b0073cc6f01f9359ddc495a2 Mon Sep 17 00:00:00 2001 +From: Leo Liu <leo.liu@amd.com> +Date: Thu, 12 Mar 2015 14:09:49 -0400 +Subject: [PATCH 25/29] st/vdpau: add h264 decoder level support +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Leo Liu <leo.liu@amd.com> +Reviewed-by: Christian König <christian.koenig@amd.com> +Signed-off-by: Arindam Nath <arindam.nath@amd.com> +--- + src/gallium/state_trackers/vdpau/decode.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c +index 767d311..0634ba7 100644 +--- a/src/gallium/state_trackers/vdpau/decode.c ++++ b/src/gallium/state_trackers/vdpau/decode.c +@@ -118,6 +118,11 @@ vlVdpDecoderCreate(VdpDevice device, + templat.height = height; + templat.max_references = max_references; + ++ if (u_reduce_video_profile(templat.profile) == ++ PIPE_VIDEO_FORMAT_MPEG4_AVC) ++ templat.level = u_get_h264_level(templat.width, templat.height, ++ &templat.max_references); ++ + vldecoder->decoder = pipe->create_video_codec(pipe, &templat); + + if (!vldecoder->decoder) { +-- +1.9.1 + |