It seems that calling ProgramLocalParameter isn't always effective (in my case, the value of the local parameter is white). Maybe the updated constants don't get uploaded to the HW? Glancing through the HW, it seems that the ProgramLocalParameter implementation doesn't have a mechanism to notify the driver of the change of the constants so it can upload the new ones, or am I missing something?...
The trigger for re-uploading parameter values is fairly blunt in the current i915 code - any state change should trigger an upload. The ProgramLocalParameter fuction will cause a statechange flag to be set (_NEW_PROGRAM), and this should cause the driver to re-upload parameters. Can you post a simple test to demonstrate the problem?
I've added a test program for the basic ProgramLocalParam functionality to Mesa/progs/fp. The test works fine as far as I can tell, so I'm going to close the bug. Please reopen and upload a test program if you still have a problem.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.