diff options
author | Dave Airlie <[email protected]> | 2009-10-14 17:44:19 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-10-14 17:44:19 +1000 |
commit | 51d1cf55da6f8b8a215814589a189b6e5e537fe5 (patch) | |
tree | 07d2b29ece39155fe8b8401fbdc1e9e0f800b81b /src/gallium/drivers/r300/r300_query.c | |
parent | 47791697ab6eb6965f0ba8ba3f20373b3753ca2a (diff) |
r300g: port over last parts of oq support.
Add support for begin/end in each CS so we don't get any other
processes rendering in between.
TODO:
blame other parts of driver for this not working like Z.
Diffstat (limited to 'src/gallium/drivers/r300/r300_query.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_query.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/r300/r300_query.c b/src/gallium/drivers/r300/r300_query.c index fb4340ff3d1..2b0fbfb7d22 100644 --- a/src/gallium/drivers/r300/r300_query.c +++ b/src/gallium/drivers/r300/r300_query.c @@ -88,14 +88,11 @@ static void r300_begin_query(struct pipe_context* pipe, } static void r300_end_query(struct pipe_context* pipe, - struct pipe_query* query) + struct pipe_query* query) { struct r300_context* r300 = r300_context(pipe); - struct r300_query* q = (struct r300_query*)query; - - r300_emit_dirty_state(r300); - r300_emit_query_end(r300, q); + r300_emit_query_end(r300); r300->query_current = NULL; } |