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 82356a5bc07452814cfaafc8ecae88547374e737..395f306f1b5b7bc27713db7bb0b9072179dada0e 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;
 }