summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-02-15 01:41:16 +0100
committerMarek Olšák <[email protected]>2011-02-15 04:00:46 +0100
commit18b4978ac8d2fb9b4f0830f33267e36ffc67b89c (patch)
tree7b35ed68236ce9b3b5e1f2a7bb7cab8f13d12720 /src/gallium/drivers/r300/r300_context.c
parent4faf11ad6c44902e17c648c28d40e10067f83612 (diff)
r300g: implement fences using dummy relocations
So finally we have them.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index 3608c04dc93..a89bf7fac31 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -532,28 +532,3 @@ fail:
r300_destroy_context(&r300->context);
return NULL;
}
-
-void r300_finish(struct r300_context *r300)
-{
- struct pipe_framebuffer_state *fb;
- unsigned i;
-
- /* This is a preliminary implementation of glFinish.
- *
- * The ideal implementation should use something like EmitIrqLocked and
- * WaitIrq, or better, real fences.
- */
- if (r300->fb_state.state) {
- fb = r300->fb_state.state;
-
- for (i = 0; i < fb->nr_cbufs; i++) {
- if (fb->cbufs[i]->texture) {
- r300->rws->buffer_wait(r300_resource(fb->cbufs[i]->texture)->buf);
- return;
- }
- }
- if (fb->zsbuf && fb->zsbuf->texture) {
- r300->rws->buffer_wait(r300_resource(fb->zsbuf->texture)->buf);
- }
- }
-}