summaryrefslogtreecommitdiff
path: root/drv_priv.h
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2016-12-14 08:51:28 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-12-20 21:55:43 -0800
commit44d1fe4264d4968cb8525f5e53f1fcd068dacbc2 (patch)
treee54ef5a0d1734c897ca1e30b0dfb1da83f52703e /drv_priv.h
parent7a755de4f3d105f50a6c8ba25c74ff8e97653159 (diff)
minigbm: tegra: add blocklinear detiling logic
With CL:397941, hshi@ figured out how to detile blocklinear buffers for tegra. Let's add that logic to our tegra map()/unmap() functions. This can be useful for various tests. BUG=chromium:673570 TEST=tiled_bo_test draws ellipse texture on Tegra (there are artifacts due another bug though) Change-Id: I7c2e7222ba67457ffd3641ba42a775ac4a667ec8 Reviewed-on: https://chromium-review.googlesource.com/421279 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Haixia Shi <hshi@chromium.org>
Diffstat (limited to 'drv_priv.h')
-rw-r--r--drv_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drv_priv.h b/drv_priv.h
index d59b2d4..9b0e4da 100644
--- a/drv_priv.h
+++ b/drv_priv.h
@@ -46,6 +46,7 @@ struct map_info {
size_t length;
uint32_t handle;
int32_t refcount;
+ void *priv;
};
struct supported_combination {
@@ -67,6 +68,7 @@ struct backend
int (*bo_create)(struct bo *bo, uint32_t width, uint32_t height,
uint32_t format, uint32_t flags);
void* (*bo_map)(struct bo *bo, struct map_info *data, size_t plane);
+ int (*bo_unmap)(struct bo *bo, struct map_info *data);
int (*bo_destroy)(struct bo *bo);
uint32_t (*resolve_format)(uint32_t format);
struct list_head combinations;