diff options
author | Marek Olšák <[email protected]> | 2011-11-10 13:35:22 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-11-10 18:09:10 +0100 |
commit | 1d09831253b82374774daee772e90a83de17517a (patch) | |
tree | 6f20917b80da02ead6cce0fbd3e2febfbf88fb7a /src/gallium/drivers/r600/r600_hw_context_priv.h | |
parent | 11bdd28796e303eda70f1d73bd2469597bd561bc (diff) |
r600g: reserve CS space for a draw command in begin_query and render_condition
There's no point in emitting those if you can't emit a draw command too.
Diffstat (limited to 'src/gallium/drivers/r600/r600_hw_context_priv.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_hw_context_priv.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_hw_context_priv.h b/src/gallium/drivers/r600/r600_hw_context_priv.h index 182f68d98e6..bea613551a7 100644 --- a/src/gallium/drivers/r600/r600_hw_context_priv.h +++ b/src/gallium/drivers/r600/r600_hw_context_priv.h @@ -30,6 +30,8 @@ #include "util/u_hash_table.h" #include "os/os_thread.h" +#define R600_MAX_DRAW_CS_DWORDS 11 + #define PKT_COUNT_C 0xC000FFFF #define PKT_COUNT_S(x) (((x) & 0x3FFF) << 16) @@ -54,7 +56,9 @@ struct r600_reg { /* * r600_hw_context.c */ -void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw); +void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw, + boolean count_draw_in); + void r600_context_bo_flush(struct r600_context *ctx, unsigned flush_flags, unsigned flush_mask, struct r600_resource *rbo); struct r600_resource *r600_context_reg_bo(struct r600_context *ctx, unsigned offset); |