summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_pipe_rast.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-10-25 01:20:56 +0100
committerKeith Whitwell <keithw@vmware.com>2009-10-25 01:20:56 +0100
commit562ca4eae257dd3b268e7f13487c8cd91f618eae (patch)
treeb3184b94b2f320f8e05e38b5e82d53d72f35b5d1 /src/gallium/drivers/i965/brw_pipe_rast.c
parent4dd2f6640b70e2313f8771f7588aa49a861153aa (diff)
i965g: more compiling wip
Diffstat (limited to 'src/gallium/drivers/i965/brw_pipe_rast.c')
-rw-r--r--src/gallium/drivers/i965/brw_pipe_rast.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_rast.c b/src/gallium/drivers/i965/brw_pipe_rast.c
index ff64dbd48d..86822d478a 100644
--- a/src/gallium/drivers/i965/brw_pipe_rast.c
+++ b/src/gallium/drivers/i965/brw_pipe_rast.c
@@ -44,3 +44,23 @@ calculate_clip_key_rast()
}
}
}
+
+
+static void
+calculate_line_stipple_rast()
+{
+ GLfloat tmp;
+ GLint tmpi;
+
+ memset(&bls, 0, sizeof(bls));
+ bls.header.opcode = CMD_LINE_STIPPLE_PATTERN;
+ bls.header.length = sizeof(bls)/4 - 2;
+ bls.bits0.pattern = brw->curr.rast.line_stipple_pattern;
+ bls.bits1.repeat_count = brw->curr.rast.line_stipple_factor + 1;
+
+ tmp = 1.0 / (GLfloat) bls.bits1.repeat_count;
+ tmpi = tmp * (1<<13);
+
+ bls.bits1.inverse_repeat_count = tmpi;
+
+}