summaryrefslogtreecommitdiff
path: root/libdrm/nouveau/nouveau_bo.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdrm/nouveau/nouveau_bo.h')
-rw-r--r--libdrm/nouveau/nouveau_bo.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/libdrm/nouveau/nouveau_bo.h b/libdrm/nouveau/nouveau_bo.h
index f0ae09be..9b1feff1 100644
--- a/libdrm/nouveau/nouveau_bo.h
+++ b/libdrm/nouveau/nouveau_bo.h
@@ -37,6 +37,10 @@
#define NOUVEAU_BO_LOCAL (1 << 9)
#define NOUVEAU_BO_TILED (1 << 10)
#define NOUVEAU_BO_ZTILE (1 << 11)
+#define NOUVEAU_BO_INVAL (1 << 12)
+#define NOUVEAU_BO_NOSYNC (1 << 13)
+#define NOUVEAU_BO_NOWAIT (1 << 14)
+#define NOUVEAU_BO_IFLUSH (1 << 15)
#define NOUVEAU_BO_DUMMY (1 << 31)
struct nouveau_bo {
@@ -46,7 +50,8 @@ struct nouveau_bo {
uint64_t size;
void *map;
- int tiled;
+ uint32_t tile_mode;
+ uint32_t tile_flags;
/* Available when buffer is pinned *only* */
uint32_t flags;
@@ -58,6 +63,11 @@ nouveau_bo_new(struct nouveau_device *, uint32_t flags, int align, int size,
struct nouveau_bo **);
int
+nouveau_bo_new_tile(struct nouveau_device *, uint32_t flags, int align,
+ int size, uint32_t tile_mode, uint32_t tile_flags,
+ struct nouveau_bo **);
+
+int
nouveau_bo_user(struct nouveau_device *, void *ptr, int size,
struct nouveau_bo **);
@@ -79,6 +89,13 @@ int
nouveau_bo_ref(struct nouveau_bo *, struct nouveau_bo **);
int
+nouveau_bo_map_range(struct nouveau_bo *, uint32_t delta, uint32_t size,
+ uint32_t flags);
+
+void
+nouveau_bo_map_flush(struct nouveau_bo *, uint32_t delta, uint32_t size);
+
+int
nouveau_bo_map(struct nouveau_bo *, uint32_t flags);
void