draw: Ensure that the vertex_header type size matches expectation.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 15 Jun 2012 13:02:31 +0000 (14:02 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 18 Jun 2012 11:06:23 +0000 (12:06 +0100)
commite48d26bf4065ed682f5d7bf81c368554aecebf43
tree1fd41f0231c2e570d9a33ceea93d846863563b53
parent6e7756db14c362ede6fdc97454267a32b8eab1d4
draw: Ensure that the vertex_header type size matches expectation.

This is failing sometimes, probably because TargetData keeps a structure layout
cache, which can becomes bogus, ever since the InvalidateStructLayoutInfo API
was removed in LLVM r135245.

This change merely makes the problem easier to diagnose (an assertion
failure instead of a random crash).
src/gallium/auxiliary/draw/draw_llvm.c