summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-01-19 21:03:24 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-01 23:30:23 -0800
commit2e09845277ce75fa7d29020c5b119ad749522592 (patch)
treebac1637cf0f50d8dd5a7e3fa4f1d2ba60a12a7d3 /src/gallium/drivers/r300/r300_emit.c
parent7961974fc28257b293961d35f15c0ce7a85f2669 (diff)
r300: Various flags, small state tracking things.
Getting these out of the way so more stuff can be put in.
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 8662830ee2..3c59a270b3 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -31,6 +31,10 @@ static void r300_emit_dirty_state(struct r300_context* r300)
struct r300_screen* r300screen = (struct r300_screen*)r300->context.screen;
CS_LOCALS(r300);
+ if (!(r300->dirty_state) && !(r300->dirty_hw)) {
+ return;
+ }
+
/* XXX check size */
if (r300->dirty_state & R300_NEW_BLEND) {
@@ -72,6 +76,7 @@ static void r300_emit_dirty_state(struct r300_context* r300)
if (r300->dirty_state & R300_NEW_RS) {
struct r300_rs_state* rs = r300->rs_state;
+ OUT_CS_REG(R300_VAP_CNTL_STATUS, rs->vap_control_status);
/* XXX next six are contiguous regs */
OUT_CS_REG(R300_SU_POLY_OFFSET_FRONT_SCALE, rs->depth_scale_front);
OUT_CS_REG(R300_SU_POLY_OFFSET_FRONT_OFFSET, rs->depth_offset_front);