Re: [Mesa-dev] [PATCH 2/5] mesa: implement EXT_texture_shared_exponent

2011-04-26 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/26/2011 05:21 PM, Marek Olšák wrote: > [snip] > > > +static INLINE float rgb9e5_MaxOf3(float x, float y, float z) > > +{ > > + if (x > y) { > > + return MAX2(x, z); > > + } else { > > + return MAX2(y, z); >

Re: [Mesa-dev] [PATCH 2/5] mesa: implement EXT_texture_shared_exponent

2011-04-26 Thread Marek Olšák
[snip] > > +static INLINE float rgb9e5_MaxOf3(float x, float y, float z) > > +{ > > + if (x > y) { > > + return MAX2(x, z); > > + } else { > > + return MAX2(y, z); > > + } > > +} > > On 04/26/2011 03:57 AM, Marek Olšák wrote: > This could probably be a MAX3 macro defined in the sam

Re: [Mesa-dev] [PATCH 2/5] mesa: implement EXT_texture_shared_exponent

2011-04-26 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/26/2011 03:57 AM, Marek Olšák wrote: > swrast support done. > > There is no renderbuffer support in swrast, because it's not required > by the extension. > --- > src/mesa/main/extensions.c |1 + > src/mesa/main/fbobject.c | 11 +++ >

[Mesa-dev] [PATCH 2/5] mesa: implement EXT_texture_shared_exponent

2011-04-26 Thread Marek Olšák
swrast support done. There is no renderbuffer support in swrast, because it's not required by the extension. --- src/mesa/main/extensions.c |1 + src/mesa/main/fbobject.c | 11 +++ src/mesa/main/formats.c | 16 - src/mesa/main/formats.h |2 + src/mesa/main/image.c