summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/libva/files/0001-ARGB-force-to-tile4.patch
diff options
context:
space:
mode:
authorLim Siew Hoon <siew.hoon.lim@intel.com>2023-08-09 17:07:40 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2023-08-10 09:59:31 +0800
commit0a8af9c93c24175b6960cd360d151ea014719ed9 (patch)
treebdcce55a5b4a7b9a2b478c59c2da579bb6b710ed /recipes-multimedia/libva/files/0001-ARGB-force-to-tile4.patch
parentf0aef0cefccab7045770776eb049d4af11d73f77 (diff)
downloadmeta-intel-0a8af9c93c24175b6960cd360d151ea014719ed9.tar.gz
intel-media-driver: upgrade 23.1.6 -> 23.2.4
Drops patches already merged: - fd67cc3fbd3a362297afc7cc8d75560df62708de.patch Rebased patches - 0001-Encode-fix-fwdRefs-array-out-of-bound-issue.patch Add patches fix various issues: - Fixed to force ARGB to tile4 for MTL platform - Fixed to force BGRX to tile4 for MTL platform - Fixed to incorrect VDSFC color issue for MTL platform - To add mocs index in patch list 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-ARGB-force-to-tile4.patch')
-rw-r--r--recipes-multimedia/libva/files/0001-ARGB-force-to-tile4.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-multimedia/libva/files/0001-ARGB-force-to-tile4.patch b/recipes-multimedia/libva/files/0001-ARGB-force-to-tile4.patch
new file mode 100644
index 00000000..3ac0685d
--- /dev/null
+++ b/recipes-multimedia/libva/files/0001-ARGB-force-to-tile4.patch
@@ -0,0 +1,35 @@
1From f172dc91c054bb6377b733db12d9210e5f73e7b2 Mon Sep 17 00:00:00 2001
2From: JayYang <jay.yang@intel.com>
3Date: Fri, 7 Jul 2023 13:40:14 +0800
4Subject: [PATCH 1/5] ARGB force to tile4
5
6Gmm may create tile64 ARGB surfaces, whereas no tile64 modifier is defined to export such surfaces.
7Force ARGB, ABGR, A2RGB10 surfaces to tile4 as WA.
8
9upstream-status: backport
10Backport from upstream intel-media-driver:
11https://github.com/intel/media-driver/commit/bd5bde0d8a0c0a6672c3586ee6727eff3ca9bc21
12---
13 media_softlet/linux/common/ddi/media_libva_util_next.cpp | 6 ++++++
14 1 file changed, 6 insertions(+)
15
16diff --git a/media_softlet/linux/common/ddi/media_libva_util_next.cpp b/media_softlet/linux/common/ddi/media_libva_util_next.cpp
17index e3c49eef8..1852e59d2 100644
18--- a/media_softlet/linux/common/ddi/media_libva_util_next.cpp
19+++ b/media_softlet/linux/common/ddi/media_libva_util_next.cpp
20@@ -647,6 +647,12 @@ VAStatus MediaLibvaUtilNext::GenerateGmmParamsForInternalSurface(
21 }
22 }
23 }
24+ // For ARGB surface, always allocate it as tile4.
25+ // This is a WA for ExportSurfaceHandle because modifer for tile64 isn't defined.
26+ if ((params.format == Media_Format_A8R8G8B8 || params.format == Media_Format_B10G10R10A2 || params.format == Media_Format_A8B8G8R8) && !MEDIA_IS_SKU(&mediaDrvCtx->SkuTable, FtrTileY))
27+ {
28+ gmmParams.Flags.Info.Tile4 = true;
29+ }
30 break;
31 case I915_TILING_X:
32 gmmParams.Flags.Info.TiledX = true;
33--
342.40.1
35