diff options
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, 0 insertions, 54 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 deleted file mode 100644 index a6f5dbb3..00000000 --- a/recipes-multimedia/libva/files/0001-Force-to-render-path-according-to-app-setting.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
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 | |||