[Mesa-dev] [PATCH] glsl: Allow implicit int -> uint conversions for the % operator.

2015-11-12 Thread Kenneth Graunke
GLSL 4.00 and GL_ARB_gpu_shader5 introduced a new int -> uint implicit conversion rule and updated the rules for modulus to use them. (In earlier languages, none of the implicit conversion rules did anything relevant, so there was no point in applying them.) This allows expressions such as:

Re: [Mesa-dev] [PATCH] glsl: Allow implicit int -> uint conversions for the % operator.

2015-11-12 Thread Ian Romanick
On 11/12/2015 02:25 PM, Kenneth Graunke wrote: > GLSL 4.00 and GL_ARB_gpu_shader5 introduced a new int -> uint implicit > conversion rule and updated the rules for modulus to use them. (In > earlier languages, none of the implicit conversion rules did anything > relevant, so there was no point in

Re: [Mesa-dev] [PATCH] glsl: Allow implicit int -> uint conversions for the % operator.

2015-11-12 Thread Kenneth Graunke
On Thursday, November 12, 2015 02:48:34 PM Ian Romanick wrote: > On 11/12/2015 02:25 PM, Kenneth Graunke wrote: > > GLSL 4.00 and GL_ARB_gpu_shader5 introduced a new int -> uint implicit > > conversion rule and updated the rules for modulus to use them. (In > > earlier languages, none of the