diff options
author | Marek Olšák <[email protected]> | 2011-11-10 15:50:06 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-11-10 18:09:10 +0100 |
commit | 578b211be6a1466eea00fc4a8fc5d4efa4bfd62c (patch) | |
tree | 8bfa415dad3de1f7c5ed7a873cce30acd8f4f379 /src/gallium/drivers/r600/r600_hw_context.c | |
parent | 9564185b0a1ac54e7188f88e57ed1a8d09d4e7bb (diff) |
r600g: disable render condition at the end of CS, re-enable at the beginning
Diffstat (limited to 'src/gallium/drivers/r600/r600_hw_context.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_hw_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c index 838af30efd5..ecb73570829 100644 --- a/src/gallium/drivers/r600/r600_hw_context.c +++ b/src/gallium/drivers/r600/r600_hw_context.c @@ -946,6 +946,11 @@ void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw, /* Count in queries_suspend. */ num_dw += ctx->num_cs_dw_queries_suspend; + /* Count in render_condition(NULL) at the end of CS. */ + if (ctx->predicate_drawing) { + num_dw += 3; + } + /* Flush if there's not enough space. */ if (num_dw > ctx->pm4_ndwords) { r600_context_flush(ctx, RADEON_FLUSH_ASYNC); |