i965: Drop the old sw fallback for position array being disabled.
authorEric Anholt <eric@anholt.net>
Sun, 26 Aug 2012 22:11:49 +0000 (15:11 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 Aug 2012 18:43:04 +0000 (11:43 -0700)
This code has been in the driver since the first commit.  I think it was
trying to stop rendering from happening with a disabled position array.  Core
mesa has since had changes to deal with disabled position arrays correctly.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_draw_upload.c

index 9c41c5358a3abd9f10b1b3756fcaddbd6e67183f..e40c7d555deda6f90211e3f32b43a8a6010cc593 100644 (file)
@@ -458,13 +458,6 @@ static void brw_prepare_vertices(struct brw_context *brw)
          * when we've decided if we're doing interleaved or not.
          */
         if (nr_uploads == 0) {
-           /* Position array not properly enabled:
-            */
-           if (input->attrib == VERT_ATTRIB_POS && glarray->StrideB == 0) {
-               intel->Fallback = true; /* boolean, not bitfield */
-               return;
-            }
-
            interleaved = glarray->StrideB;
            ptr = glarray->Ptr;
         }