OSDN Git Service

i965: Fix failure to upload new constant data when changing programs.
authorEric Anholt <eric@anholt.net>
Wed, 3 Dec 2008 19:36:55 +0000 (11:36 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 3 Dec 2008 19:45:16 +0000 (11:45 -0800)
commit264cba6f70eacd9e04646104d10ba63c248d7b83
tree1d6b7ec9d409489216248ee979689de87e2f5884
parent8a1e7086c7c1d2fed22a0d7f840de515a6ca7e18
i965: Fix failure to upload new constant data when changing programs.

This is fallout from the ffvertex_prog.c work.  It doesn't call
ProgramStringNotify, so we don't set param_state, so we wouldn't track when
VP parameters changed, and constants wouldn't get uploaded.  Instead, remove
param_state entirely and just use the real value that we want to be tracking.

Fixes rendering in openarena since BRW_NEW_BATCH got disentangled from
BRW_NEW_INDICES.

Bug #18822.
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_wm_fp.c