[Mesa-dev] Assertion `key->nr_vertex_elements <= llvm->draw->pt.nr_vertex_elements' failed.

Thomas Sondergaard ts at medical-insight.com
Tue Oct 14 13:14:17 PDT 2014


using llvmpipe I'm hitting the following assertion in some old code that 
use glEdgeFlag().

src/gallium/auxiliary/draw/draw_llvm.c:1824:draw_llvm_make_variant_key: 
Assertion `key->nr_vertex_elements <= llvm->draw->pt.nr_vertex_elements' 
failed.

I have captured a trace with apitrace from the program that you can 
download here:

http://spear.medical-insight.com/~ts/camloader.trace (size: 286KiB)

I can trigger the assertion like this:

LD_LIBRARY_PATH=.../mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib 
apitrace replay camloader.trace

I have reproduced this problem with mesa.git master tonight (commit 
742158b51ee981) and with versions of mesa that predates version 10.

I hope you can (help me) figure out what is wrong.

Thanks,
Thomas




More information about the mesa-dev mailing list