llvmpipe: Use struct lp_shader_input in the interpolator.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 1 Jun 2010 20:27:18 +0000 (21:27 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 1 Jun 2010 20:30:57 +0000 (21:30 +0100)
commit6ce68ad3ca242076bbb93fdd99bb448f87a31d15
treec16f9df9eb36510f378feef5002c383bc17e9a55
parentc7c64d97836c71eaf2ee3fc6d384877170b8c844
llvmpipe: Use struct lp_shader_input in the interpolator.

Eliminates all this identical yet slightly different code to decide how
shader inputs should be interpolated.

As bonus, don't interpolate the position twice when it is listed in the
TGSI shader inputs.
src/gallium/drivers/llvmpipe/lp_bld_interp.c
src/gallium/drivers/llvmpipe/lp_bld_interp.h
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/llvmpipe/lp_setup_tri.c
src/gallium/drivers/llvmpipe/lp_state_derived.c
src/gallium/drivers/llvmpipe/lp_state_fs.c