r300g: skip rendering if CS space validation fails
authorMarek Olšák <maraeo@gmail.com>
Fri, 10 Sep 2010 05:58:07 +0000 (07:58 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 13 Sep 2010 05:49:43 +0000 (07:49 +0200)
commitc3c5646b93eb20013d2739c7966da7ddad532877
treee99ffbf16ed144d8db03607ba481555f802d7671
parent317680c6fbb898c56dac523cde756cb892481b97
r300g: skip rendering if CS space validation fails

radeon_cs_space_check flushes the pipe context on failure, retries
the validation, and returns -1 if it fails again. At that point, there is
nothing we can do, so let's skip draw operations instead of getting stuck
in an infinite loop.

This code path ideally should never be hit.
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_emit.h
src/gallium/drivers/r300/r300_render.c