blob: df3d98054ce548636a7de987b7de0e7555600b6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
From 1580f01ec5ad5afdad58c39dded999494275be10 Mon Sep 17 00:00:00 2001
From: Lim Siew Hoon <siew.hoon.lim@intel.com>
Date: Wed, 11 Oct 2023 15:36:21 +0800
Subject: [PATCH 02/12] Force ARGB surface to tile4 for ACM
Upstream-Status: Submitted [https://github.com/intel/media-driver/pull/1728]
Signed-off-by: Soon, Thean Siew <thean.siew.soon@intel.com>
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
---
media_driver/linux/common/ddi/media_libva_util.cpp | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/media_driver/linux/common/ddi/media_libva_util.cpp b/media_driver/linux/common/ddi/media_libva_util.cpp
index 63c173419..73be76366 100755
--- a/media_driver/linux/common/ddi/media_libva_util.cpp
+++ b/media_driver/linux/common/ddi/media_libva_util.cpp
@@ -504,6 +504,7 @@ VAStatus DdiMediaUtil_AllocateSurface(
gmmCustomParams.Flags.Gpu.UnifiedAuxSurface = 0;
}
}
+
break;
case TILING_X:
gmmCustomParams.Flags.Info.TiledX = true;
@@ -685,6 +686,15 @@ VAStatus DdiMediaUtil_AllocateSurface(
}
}
}
+ // There's no VAAPI interface for modifier query yet. As a workaround, always allocate
+ // RGB surface as tile4.
+ if ((format == Media_Format_A8R8G8B8 ||
+ format == Media_Format_B10G10R10A2 |
+ format == Media_Format_A8B8G8R8 ||
+ format == Media_Format_X8R8G8B8) && !MEDIA_IS_SKU(&mediaDrvCtx->SkuTable, FtrTileY))
+ {
+ gmmParams.Flags.Info.Tile4 = true;
+ }
break;
case TILING_X:
gmmParams.Flags.Info.TiledX = true;
--
2.40.1
|