#define __NOUVEAU_LOCAL_H__
#include "pipe/p_compiler.h"
+#include "nouveau_winsys_pipe.h"
#include <stdio.h>
struct pipe_buffer;
OUT_RELOC(struct nouveau_channel *chan, struct pipe_buffer *buf,
unsigned data, unsigned flags, unsigned vor, unsigned tor)
{
- nouveau_pipe_emit_reloc(chan, chan->pushbuf->cur++, buf,
- data, flags, vor, tor);
+ nouveau_pushbuf_emit_reloc(chan, chan->pushbuf->cur++,
+ nouveau_buffer(buf)->bo,
+ data, flags, vor, tor);
}
/* Raw data + flags depending on FB/TT buffer */
return 0;
}
-int
+static int
nouveau_pipe_emit_reloc(struct nouveau_channel *chan, void *ptr,
struct pipe_buffer *buf, uint32_t data,
uint32_t flags, uint32_t vor, uint32_t tor)
unsigned chipset);
struct pipe_context *(*hw_create)(struct pipe_screen *, unsigned);
struct pipe_winsys *ws;
- struct pipe_screen *pscreen;
if (!nvws)
return NULL;