Bug 16195 - GL_ARB_fragment_program implement incorrect about state of fragment.fogcoord
Summary: GL_ARB_fragment_program implement incorrect about state of fragment.fogcoord
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: haihao
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 10788
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-02 02:28 UTC by WuNian
Modified: 2008-06-05 23:34 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description WuNian 2008-06-02 02:28:12 UTC
The bug exists in mesa_7_0 branch now.

+++ This bug was initially created as a clone of Bug #10788 +++

In extension GL_ARB_fragment_program, the components value of fragment.fogcoord are (f, 0, 0, 1), but Mesa assign the components value as (f, f, f, f).

For example:
Call glProgramStringARB with program string:
"!!ARBfp1.0\nATTRIB state_param = fragment.fogcoord;\nMOV result.color, state_param;\n\nEND";
and set the fog coord as 0.6, then draw a quads, the pixel color should be (0.6, 0, 0, 1) instead of (0.6, 0.6, 0.6, 0.6);
Comment 1 Brian Paul 2008-06-02 08:30:39 UTC
Looks like the fix for this was recently committed to the 7.0 branch (see f59267d650961ea536bf790cce905747202cca6d).  I also applied it to the i915tex driver.


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.