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-frontfacing-ternary-vec4-neg-1.0-1.0.shader_test
blob
74223e9cf3b59e2e132c3684888d3c7e6d4c5e0c
1
#
2
# Shader for testing try_opt_frontfacing_ternary optimization
3
# in the i965 driver with a vec4 type.
4
#
5
[require]
6
GLSL >= 1.10
7
8
[vertex shader passthrough]
9
10
[fragment shader]
11
void main()
12
{
13
vec4 foo;
14
if (gl_FrontFacing)
15
foo = vec4(-1.0);
16
else
17
foo = vec4(1.0);
18
19
gl_FragColor = vec4(1.5 + foo);
20
}
21
22
[test]
23
draw rect -1 -1 2 2
24
probe all rgb 0.5 0.5 0.5