summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_pipe_fb.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-06 12:51:26 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-06 12:51:26 +0000
commit3e14a482daf5e69331efac69711534a8b66118e4 (patch)
treedd9214ea66e5213a6b557468fb8c65102572656e /src/gallium/drivers/i965/brw_pipe_fb.c
parent1e3910a878e63d7859b205a30e23535d1da67d45 (diff)
i965g: propogate nr_cbufs into wm prog key
Diffstat (limited to 'src/gallium/drivers/i965/brw_pipe_fb.c')
-rw-r--r--src/gallium/drivers/i965/brw_pipe_fb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_fb.c b/src/gallium/drivers/i965/brw_pipe_fb.c
index d9b70f4eef..f65f45fb84 100644
--- a/src/gallium/drivers/i965/brw_pipe_fb.c
+++ b/src/gallium/drivers/i965/brw_pipe_fb.c
@@ -38,7 +38,10 @@ static void brw_set_framebuffer_state( struct pipe_context *pipe,
}
}
- brw->curr.fb.nr_cbufs = fb->nr_cbufs;
+ if (brw->curr.fb.nr_cbufs != fb->nr_cbufs) {
+ brw->curr.fb.nr_cbufs = fb->nr_cbufs;
+ brw->state.dirty.mesa |= PIPE_NEW_NR_CBUFS;
+ }
}