Revert "i965: fix hacked Fallback usage in brw_prepare_vertices()"
authorBrian Paul <brianp@vmware.com>
Tue, 27 Oct 2009 15:27:44 +0000 (09:27 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 27 Oct 2009 15:31:53 +0000 (09:31 -0600)
This reverts commit 8810b8f67135185d1044746bb861fe2ff997626c.

It turns out the i965 driver uses the intel->Fallback field as a boolean,
not as a bitmask.  The intelFallback() function is a no-op in the i965
driver.  It would have been nice if there were some comments about this.
I'll fix that next...

src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw_upload.c

index b1e7ec84650f0fd7852e8ecfb34783c942460d57..da0e091bfdf97aa98ec1449c63a0566222ccc2c3 100644 (file)
  */
 
 
-#define BRW_FALLBACK_DRAW  (INTEL_FALLBACK_DRIVER << 0)
-
 #define BRW_MAX_CURBE                    (32*16)
 
 struct brw_context;
index 4f8ceb37bd0b3b651880ebdf7636cd87d0769988..9d089e113e6f5606800d1ba9803b3164c347d24b 100644 (file)
@@ -375,10 +375,9 @@ static void brw_prepare_vertices(struct brw_context *brw)
     * isn't an issue at this point.
     */
    if (brw->vb.nr_enabled >= BRW_VEP_MAX) {
-      FALLBACK(intel, BRW_FALLBACK_DRAW, GL_TRUE);
+      intel->Fallback = 1;
       return;
    }
-   FALLBACK(intel, BRW_FALLBACK_DRAW, GL_FALSE);
 
    for (i = 0; i < brw->vb.nr_enabled; i++) {
       struct brw_vertex_element *input = brw->vb.enabled[i];
@@ -428,10 +427,9 @@ static void brw_prepare_vertices(struct brw_context *brw)
            /* Position array not properly enabled:
             */
             if (input->glarray->StrideB == 0) {
-               FALLBACK(intel, BRW_FALLBACK_DRAW, GL_TRUE);
+               intel->Fallback = 1;
                return;
             }
-            FALLBACK(intel, BRW_FALLBACK_DRAW, GL_FALSE);
 
            interleave = input->glarray->StrideB;
            ptr = input->glarray->Ptr;