[Piglit] [PATCH 1/7] arb_gpu_shader5/invocation-id-basic: use signed int
Anuj Phogat
anuj.phogat at gmail.com
Fri Jan 24 14:48:53 PST 2014
On Thu, Jan 23, 2014 at 11:55 PM, Jordan Justen
<jordan.l.justen at intel.com> wrote:
> gl_InvocationID is defined as an int.
>
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
> Patch series is available at:
> git://people.freedesktop.org/~jljusten/piglit gs-inv-id
>
> .../spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tests/spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test b/tests/spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test
> index bd516e5..1169cfb 100644
> --- a/tests/spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test
> +++ b/tests/spec/arb_gpu_shader5/execution/invocation-id-basic.shader_test
> @@ -25,11 +25,11 @@ void emit(vec2 v2)
>
> void main()
> {
> - uint i = gl_InvocationID;
> + int i = gl_InvocationID;
>
> vec2 v;
> - v.x = -1.0 + float(i & 1u);
> - v.y = -1.0 + float((i & 2u) / 2u);
> + v.x = -1.0 + float(i & 1);
> + v.y = -1.0 + float((i & 2) / 2);
>
> emit(v);
> emit(v + vec2(1, 0));
> --
> 1.8.5.3
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
This series is Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
More information about the Piglit
mailing list