Re: [Mesa-dev] [PATCH 1/2] spirv: Add a 64-bit implementation of OpIsInf

2018-03-21 Thread Jason Ekstrand
On Wed, Mar 21, 2018 at 8:18 AM, Jason Ekstrand wrote: > Let's handle 16-bit while we're at it. > In particular, why not just create a nir_imm_floatN_t helper similar to the nir_imm_intN_t helper I added not too long ago. It would take a double and automatically convert to float or float16 (via

Re: [Mesa-dev] [PATCH 1/2] spirv: Add a 64-bit implementation of OpIsInf

2018-03-21 Thread Jason Ekstrand
Let's handle 16-bit while we're at it. On Thu, Mar 8, 2018 at 8:07 AM, Neil Roberts wrote: > The only change neccessary is to change the type of the constant used > to compare against. > > This has been tested against the arb_gpu_shader_fp64/execution/ > fs-isinf-dvec tests using the ARB_gl_spir

[Mesa-dev] [PATCH 1/2] spirv: Add a 64-bit implementation of OpIsInf

2018-03-08 Thread Neil Roberts
The only change neccessary is to change the type of the constant used to compare against. This has been tested against the arb_gpu_shader_fp64/execution/ fs-isinf-dvec tests using the ARB_gl_spirv branch. --- src/compiler/spirv/vtn_alu.c | 11 --- 1 file changed, 8 insertions(+), 3 deleti