diff options
author | Brian Paul <[email protected]> | 2013-04-16 19:06:22 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-04-17 11:59:40 -0600 |
commit | c6a81448f8d55a510d8e32cf28e1e174bf2574dd (patch) | |
tree | 5c7a2327cc77fae5397ee64c294ce12b40894b43 /src/mesa/drivers | |
parent | 4f57fbb507c77a627c9660756ce1b7ab8bcfeb78 (diff) |
mesa: remove DD_POINT_ATTEN flag
For the i915 driver, make it a local macro.
v2: use conditional operator instead of bit shifting
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_tris.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_tris.c b/src/mesa/drivers/dri/i915/intel_tris.c index 65b494910cd..24a84cbea5b 100644 --- a/src/mesa/drivers/dri/i915/intel_tris.c +++ b/src/mesa/drivers/dri/i915/intel_tris.c @@ -945,6 +945,7 @@ intelFastRenderClippedPoly(struct gl_context * ctx, const GLuint * elts, GLuint #define DD_LINE_STIPPLE (1 << 7) +#define DD_POINT_ATTEN (1 << 9) #define ANY_FALLBACK_FLAGS (DD_LINE_STIPPLE | DD_TRI_STIPPLE | DD_POINT_ATTEN) #define ANY_RASTER_FLAGS (DD_TRI_LIGHT_TWOSIDE | DD_TRI_OFFSET | DD_TRI_UNFILLED) @@ -955,7 +956,8 @@ intelChooseRenderState(struct gl_context * ctx) TNLcontext *tnl = TNL_CONTEXT(ctx); struct intel_context *intel = intel_context(ctx); GLuint flags = ctx->_TriangleCaps | - (ctx->Line.StippleFlag ? DD_LINE_STIPPLE : 0); + (ctx->Line.StippleFlag ? DD_LINE_STIPPLE : 0) | + (ctx->Point._Attenuated ? DD_POINT_ATTEN : 0); const struct gl_fragment_program *fprog = ctx->FragmentProgram._Current; bool have_wpos = (fprog && (fprog->Base.InputsRead & VARYING_BIT_POS)); GLuint index = 0; |