Re: [Mesa-dev] [RFC 10/21] mesa: Remove equality check in helper functions

2015-10-23 Thread Nanley Chery
On Wed, Oct 21, 2015 at 11:43 PM, Erik Faye-Lund wrote: > On Tue, Oct 20, 2015 at 12:44 AM, Nanley Chery > wrote: > > From: Nanley Chery > > > > Since the version numbers being compared are integral and we don't ever > > expect gl_context::Version to be equal to 0, subtract 1 from the rhs of >

Re: [Mesa-dev] [RFC 10/21] mesa: Remove equality check in helper functions

2015-10-22 Thread Chad Versace
On Thu 22 Oct 2015, Emil Velikov wrote: > On 22 October 2015 at 07:43, Erik Faye-Lund wrote: > > On Tue, Oct 20, 2015 at 12:44 AM, Nanley Chery > > wrote: > >> From: Nanley Chery > >> > >> Since the version numbers being compared are integral and we don't ever > >> expect gl_context::Version to

Re: [Mesa-dev] [RFC 10/21] mesa: Remove equality check in helper functions

2015-10-22 Thread Emil Velikov
On 22 October 2015 at 07:43, Erik Faye-Lund wrote: > On Tue, Oct 20, 2015 at 12:44 AM, Nanley Chery wrote: >> From: Nanley Chery >> >> Since the version numbers being compared are integral and we don't ever >> expect gl_context::Version to be equal to 0, subtract 1 from the rhs of >> the equatio

Re: [Mesa-dev] [RFC 10/21] mesa: Remove equality check in helper functions

2015-10-21 Thread Erik Faye-Lund
On Tue, Oct 20, 2015 at 12:44 AM, Nanley Chery wrote: > From: Nanley Chery > > Since the version numbers being compared are integral and we don't ever > expect gl_context::Version to be equal to 0, subtract 1 from the rhs of > the equation and perform the optimization of removing the equality che

[Mesa-dev] [RFC 10/21] mesa: Remove equality check in helper functions

2015-10-19 Thread Nanley Chery
From: Nanley Chery Since the version numbers being compared are integral and we don't ever expect gl_context::Version to be equal to 0, subtract 1 from the rhs of the equation and perform the optimization of removing the equality check. Signed-off-by: Nanley Chery --- src/mesa/main/extensions.