summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_pipe_misc.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-10-25 11:36:22 +0000
committerKeith Whitwell <keithw@vmware.com>2009-10-25 11:37:39 +0000
commit590949553f737902008dea020420311e2085aa1a (patch)
tree28a207ded4c1bdb0d4d722f69f86730b501e9ef8 /src/gallium/drivers/i965/brw_pipe_misc.c
parent562ca4eae257dd3b268e7f13487c8cd91f618eae (diff)
i965g: start hooking up some to the gallium context interfaces
- create/bind/destroy blend and depth state - framebuffer and viewport - etc.
Diffstat (limited to 'src/gallium/drivers/i965/brw_pipe_misc.c')
-rw-r--r--src/gallium/drivers/i965/brw_pipe_misc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_misc.c b/src/gallium/drivers/i965/brw_pipe_misc.c
new file mode 100644
index 0000000000..fb8d7ecc59
--- /dev/null
+++ b/src/gallium/drivers/i965/brw_pipe_misc.c
@@ -0,0 +1,14 @@
+
+static void brw_set_polygon_stipple( struct pipe_context *pipe,
+ const unsigned *stipple )
+{
+ struct brw_polygon_stipple *bps = &brw->curr.bps;
+ GLuint i;
+
+ memset(bps, 0, sizeof *bps);
+ bps->header.opcode = CMD_POLY_STIPPLE_PATTERN;
+ bps->header.length = sizeof *bps/4-2;
+
+ for (i = 0; i < 32; i++)
+ bps->stipple[i] = brw->curr.poly_stipple[i]; /* don't invert */
+}