summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_mem.h
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-08-13 20:02:04 +1000
committerBen Skeggs <skeggsb@gmail.com>2007-08-15 14:31:25 +1000
commitb7c93de6d798d7ccfc7bfa12b9c8f474de955d55 (patch)
tree4a3e5c068dd79316789cfe4782b49de9a3dac8e0 /src/mesa/drivers/dri/nouveau/nouveau_mem.h
parent40e8ce700b0e1711e08e9f33c297d495c43598b1 (diff)
nouveau: Split nouveau_buffers into nouveau_mem and nouveau_fbo
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_mem.h')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_mem.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_mem.h b/src/mesa/drivers/dri/nouveau/nouveau_mem.h
new file mode 100644
index 0000000000..6db73f4708
--- /dev/null
+++ b/src/mesa/drivers/dri/nouveau/nouveau_mem.h
@@ -0,0 +1,23 @@
+#ifndef __NOUVEAU_MEM_H__
+#define __NOUVEAU_MEM_H__
+
+typedef struct nouveau_mem_t {
+ int type;
+ uint64_t offset;
+ uint64_t size;
+ void *map;
+} nouveau_mem;
+
+extern nouveau_mem *nouveau_mem_alloc(GLcontext *, uint32_t flags,
+ GLuint size, GLuint align);
+extern void nouveau_mem_free(GLcontext *, nouveau_mem *);
+extern uint32_t nouveau_mem_gpu_offset_get(GLcontext *, nouveau_mem *);
+
+extern GLboolean nouveau_memformat_flat_emit(GLcontext *,
+ nouveau_mem *dst,
+ nouveau_mem *src,
+ GLuint dst_offset,
+ GLuint src_offset,
+ GLuint size);
+
+#endif