This flag is only used in one place, and is only set on one platform. Just check for original Gen4 in the relevant function. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>tags/mesa-10.1-devel
@@ -440,7 +440,6 @@ brwCreateContext(gl_api api, | |||
if (brw->is_g4x || brw->gen >= 5) { | |||
brw->CMD_VF_STATISTICS = GM45_3DSTATE_VF_STATISTICS; | |||
brw->CMD_PIPELINE_SELECT = CMD_PIPELINE_SELECT_GM45; | |||
brw->has_aa_line_parameters = true; | |||
} else { | |||
brw->CMD_VF_STATISTICS = GEN4_3DSTATE_VF_STATISTICS; | |||
brw->CMD_PIPELINE_SELECT = CMD_PIPELINE_SELECT_965; |
@@ -1055,7 +1055,6 @@ struct brw_context | |||
bool has_surface_tile_offset; | |||
bool has_compr4; | |||
bool has_negative_rhw_bug; | |||
bool has_aa_line_parameters; | |||
bool has_pln; | |||
/** |
@@ -838,7 +838,11 @@ static void upload_aa_line_parameters(struct brw_context *brw) | |||
{ | |||
struct gl_context *ctx = &brw->ctx; | |||
if (!ctx->Line.SmoothFlag || !brw->has_aa_line_parameters) | |||
if (!ctx->Line.SmoothFlag) | |||
return; | |||
/* Original Gen4 doesn't have 3DSTATE_AA_LINE_PARAMETERS. */ | |||
if (brw->gen == 4 && !brw->is_g4x) | |||
return; | |||
if (brw->gen == 6) |