diff options
author | Brian Paul <[email protected]> | 2013-04-16 19:06:22 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-04-17 11:59:41 -0600 |
commit | c9bb052e31b7952272e60d28969e90eafb6b3e1f (patch) | |
tree | a30c87f75f8019051f6ccb9085309028e2f29f40 /src/mesa/drivers/dri/r200/r200_state.c | |
parent | 56dc53ed5bae2751eeadbfc1d163dfec72e8cfc8 (diff) |
mesa: remove DD_TRI_UNFILLED flag
Use alternate code in intel, r200, radeon drivers.
v2: use conditional operator instead of bit shifting
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_state.c')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_state.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state.c b/src/mesa/drivers/dri/r200/r200_state.c index 93ae52a4bba..6f79610f85b 100644 --- a/src/mesa/drivers/dri/r200/r200_state.c +++ b/src/mesa/drivers/dri/r200/r200_state.c @@ -731,12 +731,13 @@ static void r200PolygonOffset( struct gl_context *ctx, static void r200PolygonMode( struct gl_context *ctx, GLenum face, GLenum mode ) { r200ContextPtr rmesa = R200_CONTEXT(ctx); - GLboolean flag = (ctx->_TriangleCaps & DD_TRI_UNFILLED) != 0; + GLboolean unfilled = (ctx->Polygon.FrontMode != GL_FILL || + ctx->Polygon.BackMode != GL_FILL); /* Can't generally do unfilled via tcl, but some good special * cases work. */ - TCL_FALLBACK( ctx, R200_TCL_FALLBACK_UNFILLED, flag); + TCL_FALLBACK( ctx, R200_TCL_FALLBACK_UNFILLED, unfilled); if (rmesa->radeon.TclFallback) { r200ChooseRenderState( ctx ); r200ChooseVertexState( ctx ); |