draw: Yield zeros for LLVM fetches of non-existing vertex elements.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Apr 2013 15:16:21 +0000 (16:16 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Apr 2013 15:16:21 +0000 (16:16 +0100)
commit12096f334b82340dc165ed15e6f8f44d4cf94df4
tree62f7ff44b1a0507552299fd2bb94117c95140fe1
parent28e6a272fc0d16b2c3c8972f8936126ebf0aa764
draw: Yield zeros for LLVM fetches of non-existing vertex elements.

If a bug in an app/stater-tacker causes vertex buffer to fetch vertex
elements that are not bound, simply return zeros instead of crashing.

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