diff options
author | Marek Olšák <[email protected]> | 2011-11-09 01:42:13 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-11-10 18:09:09 +0100 |
commit | 11bdd28796e303eda70f1d73bd2469597bd561bc (patch) | |
tree | 739e0ba51bc0cb20f16bc549d4fd30e6159190ca /src/gallium/drivers/r600/r600_hw_context_priv.h | |
parent | 216be4120dd31393efa23e8b1e29e8aecd125c70 (diff) |
r600g: consolidate checking whether CS is full
This adds a new function r600_need_cs_space. Currently, it's easy to overflow
the CS - queries are not counted in. I guess that's not the only case where
the driver may crap out.
Diffstat (limited to 'src/gallium/drivers/r600/r600_hw_context_priv.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_hw_context_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_hw_context_priv.h b/src/gallium/drivers/r600/r600_hw_context_priv.h index 0cbd94bb4c8..182f68d98e6 100644 --- a/src/gallium/drivers/r600/r600_hw_context_priv.h +++ b/src/gallium/drivers/r600/r600_hw_context_priv.h @@ -54,6 +54,7 @@ struct r600_reg { /* * r600_hw_context.c */ +void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw); 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); |