This fixes a whole bunch of regressions in piglit
#include "radeon_dri.h"
#include "r200_lock.h"
+#include "radeon_cs_legacy.h"
+
#include "xf86drm.h"
#include "drm.h"
#include "radeon_drm.h"
*/
#define R200_FIREVERTICES( rmesa ) \
do { \
- if ( rmesa->radeon.dma.flush ) { \
+ if ( rmesa->radeon.cmdbuf.cs->cdw || rmesa->radeon.dma.flush ) { \
r200Flush( rmesa->radeon.glCtx ); \
} \
} while (0)
#include "main/simple_list.h"
#include "radeon_lock.h"
-
+#include "radeon_cs_legacy.h"
extern void radeonEmitState( r100ContextPtr rmesa );
extern void radeonEmitVertexAOS( 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