diff options
author | Lim Siew Hoon <siew.hoon.lim@intel.com> | 2023-09-05 16:56:47 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2023-09-07 08:37:42 +0800 |
commit | 0ccbd5e710b827a1cc73acf0ac75c395edc57b59 (patch) | |
tree | 3c3d88bc73f92b975f8887412f5cba27ffa20652 /recipes-multimedia/libva/files/0001-Force-to-render-path-according-to-app-setting.patch | |
parent | c9c5b8b1b04096fcc00d49a0aa5e1f9e2aa53953 (diff) | |
download | meta-intel-0ccbd5e710b827a1cc73acf0ac75c395edc57b59.tar.gz |
intel-media-driver: fixed multi issues
1. Force to render path according to app setting
2. Add DRM format mapping for JPEG decoder output
3. Add DRM format mapping for JPEG output to softlet
4. Disable VP9 padding on MTL platform
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-multimedia/libva/files/0001-Force-to-render-path-according-to-app-setting.patch')
-rw-r--r-- | recipes-multimedia/libva/files/0001-Force-to-render-path-according-to-app-setting.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/recipes-multimedia/libva/files/0001-Force-to-render-path-according-to-app-setting.patch b/recipes-multimedia/libva/files/0001-Force-to-render-path-according-to-app-setting.patch new file mode 100644 index 00000000..a6f5dbb3 --- /dev/null +++ b/recipes-multimedia/libva/files/0001-Force-to-render-path-according-to-app-setting.patch | |||
@@ -0,0 +1,54 @@ | |||
1 | From bfc77f3476a406600e05e3bfa5e289a94bf58aef Mon Sep 17 00:00:00 2001 | ||
2 | From: JayYang <jay.yang@intel.com> | ||
3 | Date: Fri, 4 Aug 2023 12:03:51 +0800 | ||
4 | Subject: [PATCH 1/4] Force to render path according to app setting | ||
5 | |||
6 | If apps set VA flag VA_PROC_PIPELINE_FAST, force workload to render. | ||
7 | |||
8 | Upstream-Status: Backport [https://github.com/intel/media-driver/commit/00d560ba561f57b8be85c41a791e6db05e1743e9] | ||
9 | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> | ||
10 | --- | ||
11 | .../linux/common/vp/ddi/ddi_vp_functions.cpp | 22 +++++++++---------- | ||
12 | 1 file changed, 10 insertions(+), 12 deletions(-) | ||
13 | |||
14 | diff --git a/media_softlet/linux/common/vp/ddi/ddi_vp_functions.cpp b/media_softlet/linux/common/vp/ddi/ddi_vp_functions.cpp | ||
15 | index 89da5239f..fa02bf147 100644 | ||
16 | --- a/media_softlet/linux/common/vp/ddi/ddi_vp_functions.cpp | ||
17 | +++ b/media_softlet/linux/common/vp/ddi/ddi_vp_functions.cpp | ||
18 | @@ -3991,23 +3991,21 @@ VAStatus DdiVpFunctions::DdiSetProcPipelineParams( | ||
19 | } | ||
20 | #endif //(_DEBUG || _RELEASE_INTERNAL) | ||
21 | |||
22 | - // Set stream type using pipeline_flags VA_PROC_PIPELINE_FAST flag | ||
23 | // Currently we only support 1 primary surface in VP | ||
24 | - if (pipelineParam->pipeline_flags & VA_PROC_PIPELINE_FAST) | ||
25 | + if (vpCtx->iPriSurfs < VP_MAX_PRIMARY_SURFS) | ||
26 | { | ||
27 | - vpHalSrcSurf->SurfType = SURF_IN_SUBSTREAM; | ||
28 | + vpHalSrcSurf->SurfType = SURF_IN_PRIMARY; | ||
29 | + vpCtx->iPriSurfs++; | ||
30 | } | ||
31 | else | ||
32 | { | ||
33 | - if (vpCtx->iPriSurfs < VP_MAX_PRIMARY_SURFS) | ||
34 | - { | ||
35 | - vpHalSrcSurf->SurfType = SURF_IN_PRIMARY; | ||
36 | - vpCtx->iPriSurfs++; | ||
37 | - } | ||
38 | - else | ||
39 | - { | ||
40 | - vpHalSrcSurf->SurfType = SURF_IN_SUBSTREAM; | ||
41 | - } | ||
42 | + vpHalSrcSurf->SurfType = SURF_IN_SUBSTREAM; | ||
43 | + } | ||
44 | + | ||
45 | + // Set workload path using pipeline_flags VA_PROC_PIPELINE_FAST flag | ||
46 | + if (pipelineParam->pipeline_flags & VA_PROC_PIPELINE_FAST) | ||
47 | + { | ||
48 | + vpHalRenderParams->bForceToRender = true; | ||
49 | } | ||
50 | |||
51 | // Set src rect | ||
52 | -- | ||
53 | 2.40.1 | ||
54 | |||