Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-26 Thread Francisco Jerez
Iago Toral writes: > On Fri, 2016-02-26 at 16:28 +0100, Roland Scheidegger wrote: >> Am 26.02.2016 um 11:25 schrieb Iago Toral: >> > >> > On Thu, 2016-02-25 at 18:20 -0500, Ilia Mirkin wrote: >> >> On Thu, Feb 25, 2016 at 6:16 PM, Francisco Jerez >>

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-26 Thread Connor Abbott
On Fri, Feb 26, 2016 at 10:39 AM, Iago Toral wrote: > On Fri, 2016-02-26 at 16:28 +0100, Roland Scheidegger wrote: >> Am 26.02.2016 um 11:25 schrieb Iago Toral: >> > >> > On Thu, 2016-02-25 at 18:20 -0500, Ilia Mirkin wrote: >> >> On Thu, Feb 25, 2016 at 6:16 PM, Francisco

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-26 Thread Iago Toral
On Fri, 2016-02-26 at 16:28 +0100, Roland Scheidegger wrote: > Am 26.02.2016 um 11:25 schrieb Iago Toral: > > > > On Thu, 2016-02-25 at 18:20 -0500, Ilia Mirkin wrote: > >> On Thu, Feb 25, 2016 at 6:16 PM, Francisco Jerez > >> wrote: > >>> Ian Romanick

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-26 Thread Roland Scheidegger
Am 26.02.2016 um 11:25 schrieb Iago Toral: > > On Thu, 2016-02-25 at 18:20 -0500, Ilia Mirkin wrote: >> On Thu, Feb 25, 2016 at 6:16 PM, Francisco Jerez >> wrote: >>> Ian Romanick writes: >>> On 02/25/2016 12:13 PM, Francisco Jerez wrote: >

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-26 Thread Iago Toral
On Thu, 2016-02-25 at 18:20 -0500, Ilia Mirkin wrote: > On Thu, Feb 25, 2016 at 6:16 PM, Francisco Jerez > wrote: > > Ian Romanick writes: > > > >> On 02/25/2016 12:13 PM, Francisco Jerez wrote: > >>> Ian Romanick writes: >

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Ilia Mirkin
On Thu, Feb 25, 2016 at 6:16 PM, Francisco Jerez wrote: > Ian Romanick writes: > >> On 02/25/2016 12:13 PM, Francisco Jerez wrote: >>> Ian Romanick writes: >>> On 02/25/2016 08:46 AM, Roland Scheidegger wrote: > Am

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Francisco Jerez
Ian Romanick writes: > On 02/25/2016 12:13 PM, Francisco Jerez wrote: >> Ian Romanick writes: >> >>> On 02/25/2016 08:46 AM, Roland Scheidegger wrote: Am 25.02.2016 um 11:15 schrieb Iago Toral Quiroga: > From the OpenGL 4.2 spec: > >

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Ian Romanick
On 02/25/2016 12:13 PM, Francisco Jerez wrote: > Ian Romanick writes: > >> On 02/25/2016 08:46 AM, Roland Scheidegger wrote: >>> Am 25.02.2016 um 11:15 schrieb Iago Toral Quiroga: From the OpenGL 4.2 spec: "When a constructor is used to convert any integer or

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Francisco Jerez
Ian Romanick writes: > On 02/25/2016 08:46 AM, Roland Scheidegger wrote: >> Am 25.02.2016 um 11:15 schrieb Iago Toral Quiroga: >>> From the OpenGL 4.2 spec: >>> >>> "When a constructor is used to convert any integer or floating-point type >>> to a >>> bool, 0 and 0.0 are

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Francisco Jerez
Roland Scheidegger writes: > Am 25.02.2016 um 11:15 schrieb Iago Toral Quiroga: >> From the OpenGL 4.2 spec: >> >> "When a constructor is used to convert any integer or floating-point type to >> a >> bool, 0 and 0.0 are converted to false, and non-zero values are converted

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Ian Romanick
On 02/25/2016 08:46 AM, Roland Scheidegger wrote: > Am 25.02.2016 um 11:15 schrieb Iago Toral Quiroga: >> From the OpenGL 4.2 spec: >> >> "When a constructor is used to convert any integer or floating-point type to >> a >> bool, 0 and 0.0 are converted to false, and non-zero values are converted

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Jason Ekstrand
On Thu, Feb 25, 2016 at 8:19 AM, Matt Turner wrote: > On Thu, Feb 25, 2016 at 2:15 AM, Iago Toral Quiroga > wrote: > > From the OpenGL 4.2 spec: > > > > "When a constructor is used to convert any integer or floating-point > type to a > > bool, 0 and 0.0

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Roland Scheidegger
Am 25.02.2016 um 11:15 schrieb Iago Toral Quiroga: > From the OpenGL 4.2 spec: > > "When a constructor is used to convert any integer or floating-point type to a > bool, 0 and 0.0 are converted to false, and non-zero values are converted to > true." > > Thus, even the smallest non-zero

Re: [Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Matt Turner
On Thu, Feb 25, 2016 at 2:15 AM, Iago Toral Quiroga wrote: > From the OpenGL 4.2 spec: > > "When a constructor is used to convert any integer or floating-point type to a > bool, 0 and 0.0 are converted to false, and non-zero values are converted to > true." > > Thus, even the

[Mesa-dev] [PATCH 1/2] i965/fs: fix precision of f2b

2016-02-25 Thread Iago Toral Quiroga
From the OpenGL 4.2 spec: "When a constructor is used to convert any integer or floating-point type to a bool, 0 and 0.0 are converted to false, and non-zero values are converted to true." Thus, even the smallest non-zero floating value should be translated to true. This behavior has been