diff options
author | Vadim Girlin <[email protected]> | 2011-06-29 16:29:18 +0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2011-06-30 16:39:08 -0400 |
commit | 61c976c3ccc815aaf0128eea835aee9667cd8bbe (patch) | |
tree | 5ed481c4e30555c7c7261a1968049c3b1a3292c2 /src/gallium/drivers/r600 | |
parent | 9e9d73ef100bb49c832d6f8c62cfcabbb5225928 (diff) |
r600g: fix check for empty cs
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/r600.h | 1 | ||||
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index 225c17c2540..151e831e5c6 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -245,6 +245,7 @@ struct r600_context { unsigned pm4_cdwords; unsigned pm4_dirty_cdwords; unsigned ctx_pm4_ndwords; + unsigned init_dwords; unsigned nreloc; unsigned creloc; struct r600_reloc *reloc; diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 12599bf7902..8f3a175587e 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -126,9 +126,6 @@ static void r600_flush(struct pipe_context *ctx, if (rfence) *rfence = r600_create_fence(rctx); - if (!rctx->ctx.pm4_cdwords) - return; - #if 0 sprintf(dname, "gallium-%08d.bof", dc); if (dc < 20) { |