From: Eric Anholt Date: Fri, 19 Nov 2010 15:02:07 +0000 (+0800) Subject: i965: Don't upload line stipple pattern unless we're stippling. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=008fd3779bc7adf603b27f49f4c90b21cee814e0;p=mesa.git i965: Don't upload line stipple pattern unless we're stippling. --- diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index 8dae58784c3..c5fcdde3258 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -426,6 +426,9 @@ static void upload_line_stipple(struct brw_context *brw) GLfloat tmp; GLint tmpi; + if (!ctx->Line.StippleFlag) + return; + memset(&bls, 0, sizeof(bls)); bls.header.opcode = CMD_LINE_STIPPLE_PATTERN; bls.header.length = sizeof(bls)/4 - 2;