On 27.01.2011 23:20, Christoph Bumiller wrote:
> On 27.01.2011 07:34, Eric Anholt wrote:
>> On Wed, 26 Jan 2011 13:30:04 +0100, Christoph Bumiller
>> <[email protected]> wrote:
>>> The current copy propagation code would propagate TEMP[0].x from (6)
>>> into TEMP[1].x from (8) in the following, which is clearly wrong:
>>>
>>> 6: MOV TEMP[1].x, TEMP[0].xxxx
>>> 7: MOV TEMP[0].x, TEMP[0].yyyy
>>> 8: MOV TEMP[0].y, TEMP[1].xxxx
>>> 9: ADD TEMP[1].x, TEMP[0].zzzz, IMM[0].yyyy
>>> 10: MOV TEMP[0].z, TEMP[1].xxxx
>>>
>>> Possible patch and a small program to check this attached.
>>> Tested with llvmpipe.
>> Thanks for catching this! Could you cut it down to a nice small
>> shader_test for piglit so we can regression test?
> Here you are, a piglit test.
>
Sorry, didn't (consciously) know about the shader_runner, here's a
shader_test instead.
>
>
> _______________________________________________
> mesa-dev mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
[require]
# Once gl_Vertex is changed to piglit_vertex, this test will work with
# GLSL ES 1.00 as well.
GLSL >= 1.10
[vertex shader]
#ifdef GL_ES
precision mediump float;
#endif
varying vec4 colour;
void main()
{
gl_Position = gl_Vertex;
colour = vec4(0.0, 1.0, 0.0, 1.0);
}
[fragment shader]
#ifdef GL_ES
precision mediump float;
#endif
varying vec4 colour;
void main()
{
vec4 col = colour;
while (col.b < 0.6) {
float r = col.r;
col.r = col.g;
col.g = r;
col.b += 0.25;
}
gl_FragColor = col;
}
[test]
clear color 0.0 0.0 0.0 0.0
clear
draw rect -1 -1 2 2
probe rgb 15 15 1.0 0.0 0.75
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev