i965: Remove dead fallback for stencil _Enabled but no stencil buffer.
authorEric Anholt <eric@anholt.net>
Tue, 11 Jan 2011 21:34:40 +0000 (13:34 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 11 Jan 2011 21:48:31 +0000 (13:48 -0800)
The _Enabled field is the thing that takes into account whether
there's a stencil buffer.  Tested with piglit glx-visuals-stencil.

src/mesa/drivers/dri/i965/brw_fallback.c

index 82356a5..395f306 100644 (file)
@@ -71,14 +71,6 @@ static GLboolean do_check_fallback(struct brw_context *brw)
         }
       }
    }
-   
-   /* _NEW_STENCIL 
-    */
-   if (ctx->Stencil._Enabled &&
-       (ctx->DrawBuffer->Name == 0 && !brw->intel.hw_stencil)) {
-      DBG("FALLBACK: stencil\n");
-      return GL_TRUE;
-   }
 
    return GL_FALSE;
 }