i965: Remove has_aa_line_parameters.

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>
This commit is contained in:
Kenneth Graunke 2013-09-26 12:10:48 -07:00
parent 220c1e5610
commit fc5b865cec
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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;
/**

View File

@ -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)