summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30/nv30_context.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-03-30 20:32:22 +1000
committerBen Skeggs <[email protected]>2008-03-30 20:40:27 +1000
commitbbefb541ad94382debb0f7a8daa636729799a31a (patch)
tree3f24aa5ffef5111705c05b395134a433d276658b /src/gallium/drivers/nv30/nv30_context.c
parent03c60e0fb691d39a168a8825ace7150ef3a20e02 (diff)
nouveau: adapt to recent gallium changes
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_context.c')
-rw-r--r--src/gallium/drivers/nv30/nv30_context.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/gallium/drivers/nv30/nv30_context.c b/src/gallium/drivers/nv30/nv30_context.c
index cdd662a9f19..1e729d789bd 100644
--- a/src/gallium/drivers/nv30/nv30_context.c
+++ b/src/gallium/drivers/nv30/nv30_context.c
@@ -7,10 +7,10 @@
#include "nv30_screen.h"
static void
-nv30_flush(struct pipe_context *pipe, unsigned flags)
+nv30_flush(struct pipe_context *pipe, unsigned flags,
+ struct pipe_fence_handle **fence)
{
struct nv30_context *nv30 = nv30_context(pipe);
- struct nouveau_winsys *nvws = nv30->nvws;
if (flags & PIPE_FLUSH_TEXTURE_CACHE) {
BEGIN_RING(rankine, 0x1fd8, 1);
@@ -19,18 +19,7 @@ nv30_flush(struct pipe_context *pipe, unsigned flags)
OUT_RING (1);
}
- if (flags & PIPE_FLUSH_WAIT) {
- nvws->notifier_reset(nv30->sync, 0);
- BEGIN_RING(rankine, 0x104, 1);
- OUT_RING (0);
- BEGIN_RING(rankine, 0x100, 1);
- OUT_RING (0);
- }
-
- FIRE_RING();
-
- if (flags & PIPE_FLUSH_WAIT)
- nvws->notifier_wait(nv30->sync, 0, 0, 2000);
+ FIRE_RING(fence);
}
static void
@@ -144,7 +133,7 @@ nv30_init_hwctx(struct nv30_context *nv30, int rankine_class)
BEGIN_RING(rankine, 0x1e94, 1);
OUT_RING (0x13);
- FIRE_RING ();
+ FIRE_RING (NULL);
return TRUE;
}