OSDN Git Service
(root)
/
android-x86
/
external-minigbm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minigbm: rockchip/mediatek: keep a local cached mapping of the buffer
[android-x86/external-minigbm.git]
/
evdi.c
diff --git
a/evdi.c
b/evdi.c
index
dbdb79f
..
f66fb2d
100644
(file)
--- a/
evdi.c
+++ b/
evdi.c
@@
-8,11
+8,17
@@
#include "helpers.h"
#include "util.h"
#include "helpers.h"
#include "util.h"
-static const uint32_t
supported
_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888 };
+static const uint32_t
render_target
_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888 };
static int evdi_init(struct driver *drv)
{
static int evdi_init(struct driver *drv)
{
- return drv_add_linear_combinations(drv, supported_formats, ARRAY_SIZE(supported_formats));
+ int ret;
+ ret = drv_add_combinations(drv, render_target_formats, ARRAY_SIZE(render_target_formats),
+ &LINEAR_METADATA, BO_USE_RENDER_MASK);
+ if (ret)
+ return ret;
+
+ return drv_modify_linear_combinations(drv);
}
struct backend backend_evdi = {
}
struct backend backend_evdi = {