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
gralloc0_register_buffer: initialize gralloc0 when needed
[android-x86/external-minigbm.git]
/
rockchip.c
diff --git
a/rockchip.c
b/rockchip.c
index
97ca85b
..
5fb0be4
100644
(file)
--- a/
rockchip.c
+++ b/
rockchip.c
@@
-118,7
+118,7
@@
static int rockchip_init(struct driver *drv)
metadata.tiling = 0;
metadata.priority = 1;
metadata.tiling = 0;
metadata.priority = 1;
- metadata.modifier = DRM_FORMAT_MOD_
NONE
;
+ metadata.modifier = DRM_FORMAT_MOD_
LINEAR
;
ret = drv_add_combinations(drv, render_target_formats, ARRAY_SIZE(render_target_formats),
&metadata, BO_USE_RENDER_MASK);
ret = drv_add_combinations(drv, render_target_formats, ARRAY_SIZE(render_target_formats),
&metadata, BO_USE_RENDER_MASK);
@@
-192,7
+192,7
@@
static int rockchip_bo_create_with_modifiers(struct bo *bo, uint32_t width, uint
* pick that */
afbc_bo_from_format(bo, width, height, format);
} else {
* pick that */
afbc_bo_from_format(bo, width, height, format);
} else {
- if (!has_modifier(modifiers, count, DRM_FORMAT_MOD_
NONE
)) {
+ if (!has_modifier(modifiers, count, DRM_FORMAT_MOD_
LINEAR
)) {
errno = EINVAL;
fprintf(stderr, "no usable modifier found\n");
return -1;
errno = EINVAL;
fprintf(stderr, "no usable modifier found\n");
return -1;
@@
-234,7
+234,7
@@
static int rockchip_bo_create_with_modifiers(struct bo *bo, uint32_t width, uint
static int rockchip_bo_create(struct bo *bo, uint32_t width, uint32_t height, uint32_t format,
uint64_t use_flags)
{
static int rockchip_bo_create(struct bo *bo, uint32_t width, uint32_t height, uint32_t format,
uint64_t use_flags)
{
- uint64_t modifiers[] = { DRM_FORMAT_MOD_
NONE
};
+ uint64_t modifiers[] = { DRM_FORMAT_MOD_
LINEAR
};
return rockchip_bo_create_with_modifiers(bo, width, height, format, modifiers,
ARRAY_SIZE(modifiers));
}
return rockchip_bo_create_with_modifiers(bo, width, height, format, modifiers,
ARRAY_SIZE(modifiers));
}