Mesa (master): i965: Drop the old sw fallback for position array being disabled.

Eric Anholt anholt at kemper.freedesktop.org
Tue Aug 28 18:43:36 UTC 2012


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

Author: Eric Anholt <eric at anholt.net>
Date:   Sun Aug 26 15:11:49 2012 -0700

i965: Drop the old sw fallback for position array being disabled.

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 at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

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

diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 9c41c53..e40c7d5 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -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;
 	 }




More information about the mesa-commit mailing list