summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_winsys.h
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2011-03-01 12:26:20 +1000
committerBen Skeggs <[email protected]>2011-03-01 14:44:43 +1000
commit79079141fa7cbf395d1ffc77364ac301d9824211 (patch)
treef891d7925be9edf943827cf3d702dcdb94378419 /src/gallium/drivers/nv50/nv50_winsys.h
parent5c1c4f8593073c0bad9bada9234657dda1b25ff0 (diff)
nv50: move onto common linear buffer manager
Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_winsys.h')
-rw-r--r--src/gallium/drivers/nv50/nv50_winsys.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/nv50/nv50_winsys.h b/src/gallium/drivers/nv50/nv50_winsys.h
index 8aaf24c0093..35e79210a66 100644
--- a/src/gallium/drivers/nv50/nv50_winsys.h
+++ b/src/gallium/drivers/nv50/nv50_winsys.h
@@ -4,6 +4,7 @@
#include <stdint.h>
#include <unistd.h>
+
#include "pipe/p_defines.h"
#include "nouveau/nouveau_bo.h"
@@ -13,8 +14,9 @@
#include "nouveau/nouveau_resource.h"
#include "nouveau/nouveau_pushbuf.h"
#include "nouveau/nouveau_reloc.h"
+#include "nouveau/nouveau_notifier.h"
-#include "nv50_resource.h" /* OUT_RESRC */
+#include "nouveau/nouveau_buffer.h"
#ifndef NV04_PFIFO_MAX_PACKET_LEN
#define NV04_PFIFO_MAX_PACKET_LEN 2047
@@ -68,18 +70,18 @@ BEGIN_RING_NI(struct nouveau_channel *chan, uint32_t mthd, unsigned size)
}
static INLINE int
-OUT_RESRCh(struct nouveau_channel *chan, struct nv50_resource *res,
+OUT_RESRCh(struct nouveau_channel *chan, struct nv04_resource *res,
unsigned delta, unsigned flags)
{
return OUT_RELOCh(chan, res->bo, res->offset + delta, res->domain | flags);
}
static INLINE int
-OUT_RESRCl(struct nouveau_channel *chan, struct nv50_resource *res,
+OUT_RESRCl(struct nouveau_channel *chan, struct nv04_resource *res,
unsigned delta, unsigned flags)
{
if (flags & NOUVEAU_BO_WR)
- res->status |= NV50_BUFFER_STATUS_DIRTY;
+ res->status |= NOUVEAU_BUFFER_STATUS_DIRTY;
return OUT_RELOCl(chan, res->bo, res->offset + delta, res->domain | flags);
}