OSDN Git Service

Update Android.bp after merge
[android-x86/external-minigbm.git] / drv.h
diff --git a/drv.h b/drv.h
index 937487b..4a47b76 100644 (file)
--- a/drv.h
+++ b/drv.h
@@ -89,6 +89,7 @@ struct drv_import_fd_data {
        uint32_t width;
        uint32_t height;
        uint32_t format;
+       uint32_t tiling;
        uint64_t use_flags;
 };
 
@@ -145,6 +146,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);
@@ -175,8 +178,13 @@ uint32_t drv_resolve_format(struct driver *drv, uint32_t format, uint64_t use_fl
 
 size_t drv_num_planes_from_format(uint32_t format);
 
+size_t drv_num_planes_from_modifier(struct driver *drv, uint32_t format, uint64_t modifier);
+
 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__);              \