gallivm/llvmpipe: added lp_rast_shader_inputs::facing and pass through
authorBrian Paul <brianp@vmware.com>
Thu, 18 Mar 2010 19:02:53 +0000 (13:02 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 18 Mar 2010 19:06:32 +0000 (13:06 -0600)
commit22e6dc387039e79f6d1435ae8b7422a6514d5d10
tree15a8e1c26690f70b6d8486ebdc83fc6312a04619
parentd219b8a022a6fdaa0106c6e160b594c359f85185
gallivm/llvmpipe: added lp_rast_shader_inputs::facing and pass through

The triangle rasterizer sets this field to indicate front/back-facing.
It gets passed into the generated fragment code as another parameter.
Used now for stencil front/back selection but will also be used for
fragment shaders in general (see TGSI_SEMANTIC_FACE).

With this commit two-sided stenciling mostly works but there's
still a bug or two...
src/gallium/auxiliary/gallivm/lp_bld_depth.c
src/gallium/auxiliary/gallivm/lp_bld_depth.h
src/gallium/drivers/llvmpipe/lp_jit.h
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_rast.h
src/gallium/drivers/llvmpipe/lp_rast_priv.h
src/gallium/drivers/llvmpipe/lp_setup_tri.c
src/gallium/drivers/llvmpipe/lp_state_fs.c