Bug 5422 - i915: ARB_f_p local parameters don't always take effect
Summary: i915: ARB_f_p local parameters don't always take effect
Status: RESOLVED WORKSFORME
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: 6.4
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-26 10:29 UTC by Frank Richter
Modified: 2006-01-05 02:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Frank Richter 2005-12-26 10:29:17 UTC
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?...
Comment 1 Keith Whitwell 2005-12-29 22:31:48 UTC
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? 
Comment 2 Keith Whitwell 2006-01-05 21:56:13 UTC
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.