draw/llvm: fix hard-coded number of total clip planes
authorBrian Paul <brianp@vmware.com>
Mon, 10 Oct 2011 23:43:59 +0000 (17:43 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 11 Oct 2011 13:41:22 +0000 (07:41 -0600)
commite6c237cfd6f53ff569f68255d5d6da15148cd0f5
treeabadc1875c9980c465e4fcc1c6fcf9511c9624e1
parentf0c036536f5acea90f12130dc712ea6b97d488b6
draw/llvm: fix hard-coded number of total clip planes

Instead of 12 use DRAW_TOTAL_CLIP_PLANES.  The max number of user-defined
clip planes was increased to 8 so the total number of planes is 14.
This doesn't fix any specific bug, but clearly the old code was wrong.

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