repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
fs-max-max-max.shader_test
blob
47e050018ad4e9dc187e79612ff40cbb94aab6cc
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader passthrough]
5
6
[fragment shader]
7
8
uniform float u;
9
uniform float u2;
10
11
void main()
12
{
13
float a = u;
14
float b = u2;
15
16
a = max(a, 0.35);
17
b = max(b, 0.35);
18
19
float c = max(a, b);
20
21
gl_FragColor = vec4(0.0, c, 0.0, 1.0);
22
}
23
24
[test]
25
clear color 0.2 0.2 0.2 0.2
26
clear
27
28
uniform float u 0.1
29
uniform float u2 0.1
30
31
draw rect -1 -1 2 2
32
probe all rgba 0.0 0.35 0.0 1.0