From: Keith Whitwell Date: Fri, 6 Nov 2009 08:57:40 +0000 (+0000) Subject: i965g: don't emit line stipple packet if stipple disabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c22b47ebb1f00d43fe74d57a1e727fa70c4bf970;p=mesa.git i965g: don't emit line stipple packet if stipple disabled --- 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; }