Bug 16195

Summary: GL_ARB_fragment_program implement incorrect about state of fragment.fogcoord
Product: Mesa Reporter: WuNian <nian.wu>
Component: Drivers/DRI/i915Assignee: haihao <haihao.xiang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: dri-devel
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 10788    
Bug Blocks:    

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.