diff options
author | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2017-11-21 16:12:50 +0200 |
---|---|---|
committer | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2017-11-21 16:12:50 +0200 |
commit | 2d2e71f1fe58c714c56466c29a7f568b011a1908 (patch) | |
tree | 9725233901c2ae0a513003dde92ba007c855add8 | |
parent | 4a0e772a6dd099e4bcf9321c3d7d9cc6a796aac4 (diff) |
glsl-es-1.00: Test for mediump rsq()fp16
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
-rw-r--r-- | tests/spec/glsl-es-1.00/execution/mediump_rsq.shader_test | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/execution/mediump_rsq.shader_test b/tests/spec/glsl-es-1.00/execution/mediump_rsq.shader_test new file mode 100644 index 000000000..ed3284842 --- /dev/null +++ b/tests/spec/glsl-es-1.00/execution/mediump_rsq.shader_test @@ -0,0 +1,31 @@ +[require] +GL ES >= 2.0 +GLSL ES >= 1.00 + +[vertex shader] +#version 100 + +precision highp float; + +attribute vec4 piglit_vertex; + +void main() +{ + gl_Position = piglit_vertex; +} + +[fragment shader] +#version 100 + +precision mediump float; + +uniform vec4 color; +void main() +{ + gl_FragColor = vec4(0.0, 0.5 / inversesqrt(color.g), 0.0, 1.0); +} + +[test] +uniform vec4 color 0.0 2.0 0.0 0.0 +draw rect -1 -1 2 2 +probe all rgba 0.0 0.7071 0.0 1.0 |