i965: disable bounds checking on arrays with stride 0

if stride is 0 we cannot use count as max index for bounds checking,
since the hardware will simply return 0 as data for indices failing
bounds check. If stride is 0 any index should be valid hence simply
disable bounds checking in this case.
This fixes bugs introduced with e643bc5fc7.
This commit is contained in:
Roland Scheidegger
2009-08-15 03:44:02 +02:00
parent e304c65a2b
commit b9789948e0
+1 -1
View File
@@ -547,7 +547,7 @@ static void brw_emit_vertices(struct brw_context *brw)
input->offset + input->element_size);
}
} else
OUT_BATCH(input->count);
OUT_BATCH(input->stride ? input->count : 0);
OUT_BATCH(0); /* Instance data step rate */
}
ADVANCE_BATCH();