i965g: don't emit line stipple packet if stipple disabled

This commit is contained in:
Keith Whitwell
2009-11-06 08:57:40 +00:00
parent fc7fa678f5
commit c22b47ebb1
+3 -1
View File
@@ -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;
}