summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-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;
}