Mesa (master): i965: Remove FALLBACK() from brw_update_draw_region().

Eric Anholt anholt at kemper.freedesktop.org
Mon Jul 18 18:43:58 UTC 2011


Module: Mesa
Branch: master
Commit: dd898c3e89597f841a55272be1ccc07345500f60
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd898c3e89597f841a55272be1ccc07345500f60

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jul 12 09:47:38 2011 -0700

i965: Remove FALLBACK() from brw_update_draw_region().

The 965 driver doesn't use these for deciding on fallbacks.

Reviewed-by: Chad Versace <chad at chad-versace.us>

---

 src/mesa/drivers/dri/i965/brw_vtbl.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c
index ef1d4f6..1609938 100644
--- a/src/mesa/drivers/dri/i965/brw_vtbl.c
+++ b/src/mesa/drivers/dri/i965/brw_vtbl.c
@@ -183,24 +183,14 @@ brw_update_draw_buffer(struct intel_context *intel)
       }
    }
 
-   if (!colorRegions[0]) {
-      FALLBACK(intel, INTEL_FALLBACK_DRAW_BUFFER, GL_TRUE);
-   }
-   else {
-      FALLBACK(intel, INTEL_FALLBACK_DRAW_BUFFER, GL_FALSE);
-   }
-
    /* Check for depth fallback. */
    if (irbDepth && irbDepth->region) {
       assert(!fb_has_hiz || irbDepth->Base.Format != MESA_FORMAT_S8_Z24);
-      FALLBACK(intel, INTEL_FALLBACK_DEPTH_BUFFER, GL_FALSE);
       depthRegion = irbDepth->region;
    } else if (irbDepth && !irbDepth->region) {
-      FALLBACK(intel, INTEL_FALLBACK_DEPTH_BUFFER, GL_TRUE);
       depthRegion = NULL;
    } else { /* !irbDepth */
       /* No fallback is needed because there is no depth buffer. */
-      FALLBACK(intel, INTEL_FALLBACK_DEPTH_BUFFER, GL_FALSE);
       depthRegion = NULL;
    }
 
@@ -212,12 +202,6 @@ brw_update_draw_buffer(struct intel_context *intel)
 	 assert(irbStencil->Base.Format == MESA_FORMAT_S8);
       if (irbStencil->Base.Format == MESA_FORMAT_S8)
 	 assert(intel->has_separate_stencil);
-      FALLBACK(intel, INTEL_FALLBACK_STENCIL_BUFFER, GL_FALSE);
-   } else if (irbStencil && !irbStencil->region) {
-      FALLBACK(intel, INTEL_FALLBACK_STENCIL_BUFFER, GL_TRUE);
-   } else { /* !irbStencil */
-      /* No fallback is needed because there is no stencil buffer. */
-      FALLBACK(intel, INTEL_FALLBACK_STENCIL_BUFFER, GL_FALSE);
    }
 
    /* If we have a (packed) stencil buffer attached but no depth buffer,




More information about the mesa-commit mailing list