util/u_draw: Skip rendering instead of aborting when excessive number of instances...
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 16 Nov 2012 17:57:38 +0000 (17:57 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 4 Dec 2012 19:35:19 +0000 (19:35 +0000)
commit4da0cb83ab6d82ba3cf011bb3b9b012bd27f7bfc
treec2dc6b3cc460691b70e892b1c26e9bf217ec2348
parent7da3a947c72111dfb605781be6c0d61423b56e76
util/u_draw: Skip rendering instead of aborting when excessive number of instances is found.

This is a temporary hack. I believe the only way of properly fixing this
is to check buffer overflow just before fetching based on addresses,
instead of number of vertices/instances. This change simply allows tests
that stress buffer overflows to complete without asserting, and should
not affect valid rendering.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_draw.c