summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-02-11 05:07:31 +1000
committerDave Airlie <[email protected]>2009-02-11 05:07:31 +1000
commit7394c429c065eb96801500605ab7caa0a1289193 (patch)
tree489534a3bc7824e0ca49b186129e283b7d7f60c2 /src/mesa/drivers/dri/radeon
parent18aca218a29578b5cb14a3bc492330406d3a761d (diff)
radeon/r200: flush vertices when data in cmdbuf.
This fixes a whole bunch of regressions in piglit
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_ioctl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_ioctl.h b/src/mesa/drivers/dri/radeon/radeon_ioctl.h
index ac763703bcf..4e93804646a 100644
--- a/src/mesa/drivers/dri/radeon/radeon_ioctl.h
+++ b/src/mesa/drivers/dri/radeon/radeon_ioctl.h
@@ -38,7 +38,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/simple_list.h"
#include "radeon_lock.h"
-
+#include "radeon_cs_legacy.h"
extern void radeonEmitState( r100ContextPtr rmesa );
extern void radeonEmitVertexAOS( r100ContextPtr rmesa,
@@ -132,9 +132,9 @@ static INLINE int RADEON_DB_STATECHANGE(r100ContextPtr rmesa,
*/
#define RADEON_FIREVERTICES( rmesa ) \
do { \
- if ( rmesa->radeon.dma.flush ) { \
+ if (rmesa->radeon.cmdbuf.cs->cdw || rmesa->radeon.dma.flush ) { \
radeonFlush( rmesa->radeon.glCtx ); \
- } \
+ } \
} while (0)
/* Command lengths. Note that any time you ensure ELTS_BUFSZ or VBUF_BUFSZ