r300_fragprog: Refactoring and cleanup
authorNicolai Haehnle <nhaehnle@gmail.com>
Fri, 13 Jun 2008 19:43:09 +0000 (21:43 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sat, 14 Jun 2008 02:11:05 +0000 (04:11 +0200)
commit4ba1c7d84826aaa07114872560cab3a428949499
tree3b4f8715315334abbb005069da4dae28ed4c836f
parentdefadd9c03c726d1e79bd911de07a2682bf78b01
r300_fragprog: Refactoring and cleanup

Refactor so that r300_pfs_compile_state "owns"/holds a pointer to
r300_fragment_program instead of the other way round. This is more natural from
an object orientation point of view.

Move the compiled hardware state into r300_fragment_program_code, in
anticipation of on-the-fly program recompilation based on external OpenGL
state.
src/mesa/drivers/dri/r300/r300_context.h
src/mesa/drivers/dri/r300/r300_fragprog.c
src/mesa/drivers/dri/r300/r300_shader.c
src/mesa/drivers/dri/r300/r300_state.c