r300: Cleanup fragment program constant allocation, share constants
authorNicolai Haehnle <nhaehnle@gmail.com>
Mon, 19 Mar 2007 22:32:36 +0000 (23:32 +0100)
committerNicolai Haehnle <nhaehnle@gmail.com>
Mon, 19 Mar 2007 22:59:59 +0000 (23:59 +0100)
commit61821a41c07b6b383a275acf31ade56af2ecfb3c
tree4918cc33e757e71be301b0efa3249d90c1c4b6bc
parent5a6547878373798113f8b55b912abc5bfb93add5
r300: Cleanup fragment program constant allocation, share constants

The constant/parameter allocation was significantly simplified, removing
one unnecessary copy operation of parameters. The dirty state tracking is
unchanged and far from optimal, since all state is always re-fetched.

Constants and parameters are now emitted only once, which significantly
reduces the resource pressure on larger programs.
src/mesa/drivers/dri/r300/r300_context.h
src/mesa/drivers/dri/r300/r300_fragprog.c