From: Eric Anholt Date: Tue, 11 Jan 2011 21:34:40 +0000 (-0800) Subject: i965: Remove dead fallback for stencil _Enabled but no stencil buffer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5acf94e95559879df13bfa854e081665fd58fb61;p=mesa.git i965: Remove dead fallback for stencil _Enabled but no stencil buffer. The _Enabled field is the thing that takes into account whether there's a stencil buffer. Tested with piglit glx-visuals-stencil. --- diff --git a/src/mesa/drivers/dri/i965/brw_fallback.c b/src/mesa/drivers/dri/i965/brw_fallback.c index 82356a5bc07..395f306f1b5 100644 --- a/src/mesa/drivers/dri/i965/brw_fallback.c +++ b/src/mesa/drivers/dri/i965/brw_fallback.c @@ -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; }