r600g: consolidate checking whether CS is full
authorMarek Olšák <maraeo@gmail.com>
Wed, 9 Nov 2011 00:42:13 +0000 (01:42 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 10 Nov 2011 17:09:09 +0000 (18:09 +0100)
commit11bdd28796e303eda70f1d73bd2469597bd561bc
tree739e0ba51bc0cb20f16bc549d4fd30e6159190ca
parent216be4120dd31393efa23e8b1e29e8aecd125c70
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.
src/gallium/drivers/r600/evergreen_hw_context.c
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/r600/r600_hw_context_priv.h