Re: [Mesa-dev] [PATCH 2/2] glsl: Handle bits=32 case in bitfieldInsert/bitfieldExtract.

2016-01-04 Thread Matt Turner
On Wed, Dec 30, 2015 at 4:26 PM, Ilia Mirkin wrote: > On Wed, Dec 30, 2015 at 3:26 PM, Matt Turner wrote: >> The OpenGL specifications for these functions say: >> >>The result will be undefined if or is negative, or if >>the sum of and is

Re: [Mesa-dev] [PATCH 2/2] glsl: Handle bits=32 case in bitfieldInsert/bitfieldExtract.

2016-01-04 Thread Matt Turner
On Wed, Dec 30, 2015 at 8:55 PM, Roland Scheidegger wrote: > Am 30.12.2015 um 21:26 schrieb Matt Turner: >> The OpenGL specifications for these functions say: >> >>The result will be undefined if or is negative, or if >>the sum of and is greater than the number of

Re: [Mesa-dev] [PATCH 2/2] glsl: Handle bits=32 case in bitfieldInsert/bitfieldExtract.

2016-01-04 Thread Ilia Mirkin
On Mon, Jan 4, 2016 at 12:44 PM, Matt Turner wrote: > On Wed, Dec 30, 2015 at 4:26 PM, Ilia Mirkin wrote: >> On Wed, Dec 30, 2015 at 3:26 PM, Matt Turner wrote: >>> The OpenGL specifications for these functions say: >>> >>>The

Re: [Mesa-dev] [PATCH 2/2] glsl: Handle bits=32 case in bitfieldInsert/bitfieldExtract.

2016-01-04 Thread Ilia Mirkin
On Mon, Jan 4, 2016 at 12:52 PM, Ilia Mirkin wrote: > On Mon, Jan 4, 2016 at 12:44 PM, Matt Turner wrote: >> On Wed, Dec 30, 2015 at 4:26 PM, Ilia Mirkin wrote: >>> On Wed, Dec 30, 2015 at 3:26 PM, Matt Turner

Re: [Mesa-dev] [PATCH 2/2] glsl: Handle bits=32 case in bitfieldInsert/bitfieldExtract.

2016-01-04 Thread Matt Turner
On Mon, Jan 4, 2016 at 12:52 PM, Ilia Mirkin wrote: > On Mon, Jan 4, 2016 at 12:44 PM, Matt Turner wrote: >> On Wed, Dec 30, 2015 at 4:26 PM, Ilia Mirkin wrote: >>> On Wed, Dec 30, 2015 at 3:26 PM, Matt Turner

Re: [Mesa-dev] [PATCH 2/2] glsl: Handle bits=32 case in bitfieldInsert/bitfieldExtract.

2016-01-02 Thread Jordan Justen
On 2015-12-30 13:26:48, Ilia Mirkin wrote: > On Wed, Dec 30, 2015 at 3:26 PM, Matt Turner wrote: > > The OpenGL specifications for these functions say: > > > >The result will be undefined if or is negative, or if > >the sum of and is greater than the number of bits

[Mesa-dev] [PATCH 2/2] glsl: Handle bits=32 case in bitfieldInsert/bitfieldExtract.

2015-12-30 Thread Matt Turner
The OpenGL specifications for these functions say: The result will be undefined if or is negative, or if the sum of and is greater than the number of bits used to store the operand. Therefore passing bits=32, offset=0 is legal and defined in GLSL. But the earlier DX11/SM5

Re: [Mesa-dev] [PATCH 2/2] glsl: Handle bits=32 case in bitfieldInsert/bitfieldExtract.

2015-12-30 Thread Ilia Mirkin
On Wed, Dec 30, 2015 at 3:26 PM, Matt Turner wrote: > The OpenGL specifications for these functions say: > >The result will be undefined if or is negative, or if >the sum of and is greater than the number of bits >used to store the operand. > > Therefore

Re: [Mesa-dev] [PATCH 2/2] glsl: Handle bits=32 case in bitfieldInsert/bitfieldExtract.

2015-12-30 Thread Roland Scheidegger
Am 30.12.2015 um 21:26 schrieb Matt Turner: > The OpenGL specifications for these functions say: > >The result will be undefined if or is negative, or if >the sum of and is greater than the number of bits >used to store the operand. > > Therefore passing bits=32, offset=0 is