Bug 10767

Summary: GL_ARB_fragment_program implement incorrect
Product: Mesa Reporter: WuNian <nian.wu>
Component: Drivers/DRI/i965Assignee: haihao <haihao.xiang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: eric, wei.z.wang
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test case

Description WuNian 2007-04-25 22:31:11 UTC
With i965 driver, I called glProgramStringARB with command string:  "!!ARBfp1.0\nATTRIB color0 = fragment.color;\nATTRIB color1 = fragment.color.primary;\nATTRIB color2 = fragment.color.secondary;\nOUTPUT outcolor = result.color;\nABS outcolor,-color2;\n\nEND\0";
The result fragment color is primary color, but it should be the secondary color.

If modify the command string as:
   char cmd1[1024] = "!!ARBfp1.0\nATTRIB color2 = fragment.color.secondary;\nOUTPUT outcolor = result.color;\nABS outcolor,-color2;\n\nEND\0"

Then i965 driver works correct.

With i915 driver and soft rendering, the bug do not exist.
Comment 1 WuNian 2007-04-25 22:34:24 UTC
Created attachment 9741 [details]
test case
Comment 2 haihao 2008-02-13 21:19:48 UTC
fixed in mesa 4813946d366a0d61e0be1dacec6d3077bc939b48
Comment 3 WuNian 2008-02-14 18:44:58 UTC
verified. Thanks.
Comment 4 Adam Jackson 2009-08-24 12:26:36 UTC
Mass version move, cvs -> git

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.