Re: [Piglit] [PATCH] shaders: add test for bool casting of large integers.

2013-10-09 Thread Dave Airlie
On Wed, Oct 9, 2013 at 2:30 AM, Ian Romanick i...@freedesktop.org wrote: On 10/07/2013 04:22 PM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com I noticed the TGSI convertor just does INEG then AND 0x3f80, which works for small values, but fails for larger ints. This seems to

Re: [Piglit] [PATCH] shaders: add test for bool casting of large integers.

2013-10-08 Thread Ian Romanick
On 10/07/2013 04:22 PM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com I noticed the TGSI convertor just does INEG then AND 0x3f80, which works for small values, but fails for larger ints. This seems to fail on nvidia (4.3.0 NVIDIA 325.15) and on ironlake with mesa 9.2. If

[Piglit] [PATCH] shaders: add test for bool casting of large integers.

2013-10-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com I noticed the TGSI convertor just does INEG then AND 0x3f80, which works for small values, but fails for larger ints. This seems to fail on nvidia (4.3.0 NVIDIA 325.15) and on ironlake with mesa 9.2. Signed-off-by: Dave Airlie airl...@redhat.com ---