OSDN Git Service
(root)
/
android-x86
/
hardware-intel-common-vaapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81cf65d
)
Enable is_16bpp flag of gpe_surface for P010 surface
author
peng.chen
<peng.c.chen@intel.com>
Tue, 6 Jun 2017 05:54:00 +0000
(13:54 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Thu, 8 Jun 2017 08:02:50 +0000
(16:02 +0800)
It is only for media_block_rw mode
Signed-off-by: peng.chen <peng.c.chen@intel.com>
src/i965_gpe_utils.c
patch
|
blob
|
history
diff --git
a/src/i965_gpe_utils.c
b/src/i965_gpe_utils.c
index
44c913f
..
403ba91
100644
(file)
--- a/
src/i965_gpe_utils.c
+++ b/
src/i965_gpe_utils.c
@@
-2677,6
+2677,11
@@
gen9_add_2d_gpe_surface(VADriverContextP ctx,
gpe_surface.cacheability_control = i965->intel.mocs_state;
gpe_surface.format = format;
+ if (gpe_surface.is_media_block_rw) {
+ if (obj_surface->fourcc == VA_FOURCC_P010)
+ gpe_surface.is_16bpp = 1;
+ }
+
gen9_gpe_context_add_surface(gpe_context, &gpe_surface, index);
i965_free_gpe_resource(&gpe_resource);
}