Add a facility to route all rasterization through a fragment program
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 4 May 2005 11:44:44 +0000 (11:44 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 4 May 2005 11:44:44 +0000 (11:44 +0000)
commit47b29f511a8e917c65536fde90397d54d2ad23d3
treec8db61607defe55b4540af3e4614df9831d2021d
parentc3f764f7bb5a0571ddb0bc8b37aff9d663188d79
Add a facility to route all rasterization through a fragment program
which is automatically generated to match the current texture environment
state.  Introduces a new value ctx->FragmentProgram._Active which is
true when either _Enabled is true or there is such a fragment program
ready to run.

To test out on a driver running the software rasterizer, set
MESA_TEX_PROG=t in the environment.  It goes without saying that performance
is lower for the software rasterizer in this mode.
14 files changed:
src/mesa/main/context.c
src/mesa/main/mtypes.h
src/mesa/main/state.c
src/mesa/main/texenvprogram.c
src/mesa/main/texenvprogram.h [new file with mode: 0644]
src/mesa/sources
src/mesa/swrast/s_aalinetemp.h
src/mesa/swrast/s_context.c
src/mesa/swrast/s_fragprog_to_c.c
src/mesa/swrast/s_nvfragprog.c
src/mesa/swrast/s_pointtemp.h
src/mesa/swrast/s_span.c
src/mesa/swrast/s_triangle.c
src/mesa/tnl/t_vp_build.c