Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-17 Thread Jason Ekstrand
On Dec 17, 2014 4:52 AM, "Iago Toral" wrote: > > On Wed, 2014-12-17 at 03:51 -0800, Jason Ekstrand wrote: > > > > > > > > > > > > On Tue, Dec 16, 2014 at 11:37 PM, Iago Toral > > wrote: > > On Tue, 2014-12-16 at 10:54 -0800, Jason Ekstrand wrote: > > > > > > > > >

Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-17 Thread Iago Toral
On Wed, 2014-12-17 at 03:51 -0800, Jason Ekstrand wrote: > > > > > > On Tue, Dec 16, 2014 at 11:37 PM, Iago Toral > wrote: > On Tue, 2014-12-16 at 10:54 -0800, Jason Ekstrand wrote: > > > > > > On Tue, Dec 16, 2014 at 4:01 AM, Iago Toral > wrote: >

Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-17 Thread Jason Ekstrand
On Tue, Dec 16, 2014 at 11:37 PM, Iago Toral wrote: > > On Tue, 2014-12-16 at 10:54 -0800, Jason Ekstrand wrote: > > > > > > On Tue, Dec 16, 2014 at 4:01 AM, Iago Toral wrote: > > On Tue, 2014-12-16 at 08:29 +0100, Iago Toral wrote: > > > On Mon, 2014-12-15 at 10:19 -0800, Jason E

Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-16 Thread Iago Toral
On Tue, 2014-12-16 at 10:54 -0800, Jason Ekstrand wrote: > > > On Tue, Dec 16, 2014 at 4:01 AM, Iago Toral wrote: > On Tue, 2014-12-16 at 08:29 +0100, Iago Toral wrote: > > On Mon, 2014-12-15 at 10:19 -0800, Jason Ekstrand wrote: > > > > > > > > > On Mon,

Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-16 Thread Jason Ekstrand
On Tue, Dec 16, 2014 at 4:01 AM, Iago Toral wrote: > > On Tue, 2014-12-16 at 08:29 +0100, Iago Toral wrote: > > On Mon, 2014-12-15 at 10:19 -0800, Jason Ekstrand wrote: > > > > > > > > > On Mon, Dec 15, 2014 at 3:12 AM, Iago Toral wrote: > > > On Fri, 2014-12-12 at 11:36 -0800, Jason Ekst

Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-16 Thread Iago Toral
On Tue, 2014-12-16 at 08:29 +0100, Iago Toral wrote: > On Mon, 2014-12-15 at 10:19 -0800, Jason Ekstrand wrote: > > > > > > On Mon, Dec 15, 2014 at 3:12 AM, Iago Toral wrote: > > On Fri, 2014-12-12 at 11:36 -0800, Jason Ekstrand wrote: > > > > > > > > > On Tue, De

Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-15 Thread Iago Toral
On Mon, 2014-12-15 at 10:19 -0800, Jason Ekstrand wrote: > > > On Mon, Dec 15, 2014 at 3:12 AM, Iago Toral wrote: > On Fri, 2014-12-12 at 11:36 -0800, Jason Ekstrand wrote: > > > > > > On Tue, Dec 9, 2014 at 4:07 AM, Iago Toral Quiroga > > > wrote

Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-15 Thread Jason Ekstrand
On Mon, Dec 15, 2014 at 3:12 AM, Iago Toral wrote: > > On Fri, 2014-12-12 at 11:36 -0800, Jason Ekstrand wrote: > > > > > > On Tue, Dec 9, 2014 at 4:07 AM, Iago Toral Quiroga > > wrote: > > For glReadPixels with a Luminance destination format we > > compute luminance > > v

Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-15 Thread Iago Toral
On Fri, 2014-12-12 at 11:36 -0800, Jason Ekstrand wrote: > > > On Tue, Dec 9, 2014 at 4:07 AM, Iago Toral Quiroga > wrote: > For glReadPixels with a Luminance destination format we > compute luminance > values from RGBA as L=R+G+B. This, however, requires ad-hoc >

Re: [Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-12 Thread Jason Ekstrand
On Tue, Dec 9, 2014 at 4:07 AM, Iago Toral Quiroga wrote: > > For glReadPixels with a Luminance destination format we compute luminance > values from RGBA as L=R+G+B. This, however, requires ad-hoc implementation, > since pack/unpack functions or _mesa_swizzle_and_convert won't do this > (and thus

[Mesa-dev] [PATCH v3 09/28] mesa: Add RGBA to Luminance conversion helpers

2014-12-09 Thread Iago Toral Quiroga
For glReadPixels with a Luminance destination format we compute luminance values from RGBA as L=R+G+B. This, however, requires ad-hoc implementation, since pack/unpack functions or _mesa_swizzle_and_convert won't do this (and thus, neither will _mesa_format_convert). This patch adds helpers to do t