summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_flush.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-06-12 23:45:02 +0200
committerMarek Olšák <maraeo@gmail.com>2010-06-13 17:43:38 +0200
commit7ca24dfa6daead4722d03d9a947f1e049b9c7d38 (patch)
treec51546ed9aa6ad815a04d0ecc136eba913d02d3d /src/gallium/drivers/r300/r300_flush.c
parent98f67a6bbd19474b1fc4816325ba23d5560ae698 (diff)
downloadexternal_mesa3d-7ca24dfa6daead4722d03d9a947f1e049b9c7d38.zip
external_mesa3d-7ca24dfa6daead4722d03d9a947f1e049b9c7d38.tar.gz
external_mesa3d-7ca24dfa6daead4722d03d9a947f1e049b9c7d38.tar.bz2
r300g: inline FLUSH_CS
The fewer macros, the better.
Diffstat (limited to 'src/gallium/drivers/r300/r300_flush.c')
-rw-r--r--src/gallium/drivers/r300/r300_flush.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c
index 360b19a..ba840bf 100644
--- a/src/gallium/drivers/r300/r300_flush.c
+++ b/src/gallium/drivers/r300/r300_flush.c
@@ -39,8 +39,6 @@ static void r300_flush(struct pipe_context* pipe,
struct r300_atom *atom;
struct r300_fence **rfence = (struct r300_fence**)fence;
- CS_LOCALS(r300);
- (void) cs_count;
/* We probably need to flush Draw, but we may have been called from
* within Draw. This feels kludgy, but it might be the best thing.
*
@@ -52,7 +50,10 @@ static void r300_flush(struct pipe_context* pipe,
if (r300->dirty_hw) {
r300_emit_query_end(r300);
- FLUSH_CS;
+ if (SCREEN_DBG_ON(r300->screen, DBG_STATS)) {
+ r300->flush_counter++;
+ }
+ r300->rws->flush_cs(r300->rws);
r300->dirty_hw = 0;
/* New kitchen sink, baby. */