perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / cmod-cmp-to-add-ne.shader_test
blobcbc1614aebac20e1503fc8b101b69b45228f2a99
1 # Test case reproduces mesa#2610. On Intel GPUs, the ordering of .sat
2 # destination modifier and flag generation were handled backwards.
4 [require]
5 GLSL >= 1.10
7 [vertex shader passthrough]
9 [fragment shader]
10 #version 110
12 uniform float uni_val;
14 void main()
16    float val = 0.0;
17    val = 1.0;
19    if (uni_val != 10.0)
20       val = clamp(uni_val - 10.0, 0.0, 1.0);
22    gl_FragColor = vec4(val, 1.0 - val, 0.0, 1.0);
25 [test]
26 uniform float uni_val 5.0
27 clear color 0.5 0.5 0.5 0.5
28 clear
29 draw rect -1 -1 2 2
30 probe all rgba 0.0 1.0 0.0 1.0