summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_state_surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_surface.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_state_surface.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_surface.c b/src/mesa/pipe/softpipe/sp_state_surface.c
index 989f2e29d8..d089fe0632 100644
--- a/src/mesa/pipe/softpipe/sp_state_surface.c
+++ b/src/mesa/pipe/softpipe/sp_state_surface.c
@@ -51,3 +51,17 @@ void softpipe_set_cbuf_state( struct pipe_context *pipe,
}
+/*
+ * XXX this might get moved someday
+ */
+void softpipe_set_framebuffer_state( struct pipe_context *pipe,
+ const struct pipe_framebuffer_state *fb )
+{
+ struct softpipe_context *softpipe = softpipe_context(pipe);
+
+ softpipe->framebuffer = *fb; /* struct copy */
+
+ softpipe->dirty |= G_NEW_FRAMEBUFFER;
+}
+
+