Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / mesa / src / gallium / drivers / nouveau / nouveau_mm.h
blob5b57c8ba4f21ef31d78df5f8950c99df8bef26f0
1 #ifndef __NOUVEAU_MM_H__
2 #define __NOUVEAU_MM_H__
4 struct nouveau_mman;
6 /* Since a resource can be migrated, we need to decouple allocations from
7 * them. This struct is linked with fences for delayed freeing of allocs.
8 */
9 struct nouveau_mm_allocation {
10 struct nouveau_mm_allocation *next;
11 void *priv;
12 uint32_t offset;
15 extern struct nouveau_mman *
16 nouveau_mm_create(struct nouveau_device *, uint32_t domain,
17 uint32_t storage_type);
19 extern void
20 nouveau_mm_destroy(struct nouveau_mman *);
22 extern struct nouveau_mm_allocation *
23 nouveau_mm_allocate(struct nouveau_mman *, uint32_t size,
24 struct nouveau_bo **, uint32_t *offset);
26 extern void
27 nouveau_mm_free(struct nouveau_mm_allocation *);
29 extern void
30 nouveau_mm_free_work(void *);
32 #endif // __NOUVEAU_MM_H__