OSDN Git Service

Revert "Merge Android R"
[android-x86/external-minigbm.git] / drv.h
diff --git a/drv.h b/drv.h
index 6642a3d..f19f9de 100644 (file)
--- a/drv.h
+++ b/drv.h
@@ -145,6 +145,8 @@ int drv_bo_unmap(struct bo *bo, struct mapping *mapping);
 
 int drv_bo_invalidate(struct bo *bo, struct mapping *mapping);
 
+int drv_bo_flush(struct bo *bo, struct mapping *mapping);
+
 int drv_bo_flush_or_unmap(struct bo *bo, struct mapping *mapping);
 
 uint32_t drv_bo_get_width(struct bo *bo);
@@ -179,6 +181,9 @@ size_t drv_num_planes_from_modifier(struct driver *drv, uint32_t format, uint64_
 
 uint32_t drv_num_buffers_per_bo(struct bo *bo);
 
+int drv_resource_info(struct bo *bo, uint32_t strides[DRV_MAX_PLANES],
+                     uint32_t offsets[DRV_MAX_PLANES]);
+
 #define drv_log(format, ...)                                                                       \
        do {                                                                                       \
                drv_log_prefix("minigbm", __FILE__, __LINE__, format, ##__VA_ARGS__);              \