From 5acf94e95559879df13bfa854e081665fd58fb61 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 11 Jan 2011 13:34:40 -0800 Subject: 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. --- src/mesa/drivers/dri/i965/brw_fallback.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/mesa/drivers/dri') diff --git a/src/mesa/drivers/dri/i965/brw_fallback.c b/src/mesa/drivers/dri/i965/brw_fallback.c index 82356a5bc0..395f306f1b 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; } -- cgit v1.2.3