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.
Created attachment 9741 [details] test case
fixed in mesa 4813946d366a0d61e0be1dacec6d3077bc939b48
verified. Thanks.
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.