draw/llvm: combine draw_llvm_generate() and draw_llvm_generate_elts()
authorBrian Paul <brianp@vmware.com>
Sat, 10 Sep 2011 16:20:52 +0000 (10:20 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 10 Sep 2011 16:34:44 +0000 (10:34 -0600)
commitaa77df135571978bcda5a3254f67ca7e307b1960
tree0e378d5df5e8e1f99f21977a218e658ac0b39770
parent3d32e589879806297258e36ea80aae5044293ca3
draw/llvm: combine draw_llvm_generate() and draw_llvm_generate_elts()

These two functions were nearly the same with lots of duplicated code.
Now pass in a boolean 'elts' flag and use a few conditionals to implement
the linear vs. indexed cases.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_llvm.c