Bug 10767 - GL_ARB_fragment_program implement incorrect
Summary: GL_ARB_fragment_program implement incorrect
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: haihao
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-25 22:31 UTC by WuNian
Modified: 2009-08-24 12:26 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
test case (2.67 KB, text/plain)
2007-04-25 22:34 UTC, WuNian
Details

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.