summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_state.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@nx6125b.(none)>2007-06-21 14:20:33 +1000
committerDave Airlie <airlied@nx6125b.(none)>2007-06-21 14:20:33 +1000
commitd1be4ab80fc266ba6792ef1151d4bdf804cff92a (patch)
treeb2d0c6d3941e687716fa7b2094eba8b89ba1aacc /src/mesa/drivers/dri/r300/r300_state.h
parent025efae411a8146a9766aa863d7baee13c2c79aa (diff)
fix up vertex emission before state change
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_state.h')
-rw-r--r--src/mesa/drivers/dri/r300/r300_state.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.h b/src/mesa/drivers/dri/r300/r300_state.h
index 21a49b7f36..365f7ecd0c 100644
--- a/src/mesa/drivers/dri/r300/r300_state.h
+++ b/src/mesa/drivers/dri/r300/r300_state.h
@@ -37,8 +37,15 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "r300_context.h"
+#define R300_NEWPRIM( rmesa ) \
+ do { \
+ if ( rmesa->dma.flush ) \
+ rmesa->dma.flush( rmesa ); \
+ } while (0)
+
#define R300_STATECHANGE(r300, atom) \
do { \
+ R300_NEWPRIM(r300); \
r300->hw.atom.dirty = GL_TRUE; \
r300->hw.is_dirty = GL_TRUE; \
} while(0)