[Piglit] [PATCH] arb_gpu_shader_fp64: add test for using double as loop iterator
Chris Forbes
chrisf at ijw.co.nz
Thu Aug 14 04:53:27 PDT 2014
Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>
On Thu, Aug 14, 2014 at 11:44 PM, Tapani Pälli <tapani.palli at intel.com> wrote:
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
> .../compiler/double-loop-iterator.vert | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
> create mode 100644 tests/spec/arb_gpu_shader_fp64/compiler/double-loop-iterator.vert
>
> diff --git a/tests/spec/arb_gpu_shader_fp64/compiler/double-loop-iterator.vert b/tests/spec/arb_gpu_shader_fp64/compiler/double-loop-iterator.vert
> new file mode 100644
> index 0000000..7756c8b
> --- /dev/null
> +++ b/tests/spec/arb_gpu_shader_fp64/compiler/double-loop-iterator.vert
> @@ -0,0 +1,22 @@
> +// [config]
> +// expect_result: pass
> +// glsl_version: 1.50
> +// require_extensions: GL_ARB_gpu_shader_fp64
> +// [end config]
> +//
> +// Test that double can be used as a loop iterator
> +
> +#version 150
> +#extension GL_ARB_gpu_shader_fp64 : enable
> +
> +void test() {
> +
> + double k;
> + vec4 vertex;
> +
> + for (k = 0.0lf; k < 1.0lf; k += 0.1lf) {
> + vertex.x += k;
> + }
> +
> + gl_Position = vertex;
> +}
> --
> 1.9.3
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
More information about the Piglit
mailing list