summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-06 08:57:40 +0000
committerKeith Whitwell <[email protected]>2009-11-06 08:57:40 +0000
commitc22b47ebb1f00d43fe74d57a1e727fa70c4bf970 (patch)
treefca3accb4a266e5212d9e754d8e2d681225a4103 /src
parentfc7fa678f55d15b032e3c9053a22c811e2de4cde (diff)
i965g: don't emit line stipple packet if stipple disabled
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/i965/brw_misc_state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_misc_state.c b/src/gallium/drivers/i965/brw_misc_state.c
index ce3e48f3607..5ee87bcac08 100644
--- a/src/gallium/drivers/i965/brw_misc_state.c
+++ b/src/gallium/drivers/i965/brw_misc_state.c
@@ -344,7 +344,9 @@ const struct brw_tracked_state brw_polygon_stipple = {
static int upload_line_stipple(struct brw_context *brw)
{
const struct brw_line_stipple *bls = &brw->curr.rast->bls;
- BRW_CACHED_BATCH_STRUCT(brw, bls);
+ if (bls->header.opcode) {
+ BRW_CACHED_BATCH_STRUCT(brw, bls);
+ }
return 0;
}