Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-19 Thread Jose Fonseca
- Original Message - > Jose Fonseca writes: > > - Original Message - > >> On Sun, 2013-06-16 at 10:22 -0700, Jose Fonseca wrote: > >> > >> > Ok. I think this patch series is sound from an implementation POV. I > >> > see no point in delaying further. We can tweak things afterwar

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-17 Thread Richard Sandiford
Jose Fonseca writes: > - Original Message - >> On Sun, 2013-06-16 at 10:22 -0700, Jose Fonseca wrote: >> >> > Ok. I think this patch series is sound from an implementation POV. I >> > see no point in delaying further. We can tweak things afterwards if >> > deemed necessary. >> > >> > Let

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-17 Thread Jose Fonseca
- Original Message - > On Sun, 2013-06-16 at 10:22 -0700, Jose Fonseca wrote: > > > Ok. I think this patch series is sound from an implementation POV. I > > see no point in delaying further. We can tweak things afterwards if > > deemed necessary. > > > > Lets squash the commits, rename

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-17 Thread Adam Jackson
On Sun, 2013-06-16 at 10:22 -0700, Jose Fonseca wrote: > Ok. I think this patch series is sound from an implementation POV. I > see no point in delaying further. We can tweak things afterwards if > deemed necessary. > > Lets squash the commits, rename the XYZW formats to go from > low->high b

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-16 Thread Jose Fonseca
- Original Message - > - Original Message - > > Jose Fonseca writes: > > >> Yeah, that's what the patch was trying to do.  Even though the formats > > >> were defined as "int"s, the int layout was extra information on top of > > >> what's already there.  The int information didn'

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-06 Thread Richard Sandiford
Christoph Bumiller writes: > On 06.06.2013 10:34, Richard Sandiford wrote: >> Michel Dänzer writes: >>> On Die, 2013-06-04 at 10:47 +0100, Richard Sandiford wrote: (2) it uses PIPE_FORMAT_INT_* names with the lsb first rather than the mesa-like ones with msb first. (I'm happy to ch

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-06 Thread Christoph Bumiller
On 06.06.2013 10:34, Richard Sandiford wrote: > Michel Dänzer writes: >> On Die, 2013-06-04 at 10:47 +0100, Richard Sandiford wrote: >>> (2) it uses PIPE_FORMAT_INT_* names with the lsb first rather than the >>> mesa-like ones with msb first. (I'm happy to change the names to >>> somethin

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-06 Thread Richard Sandiford
Michel Dänzer writes: > On Die, 2013-06-04 at 10:47 +0100, Richard Sandiford wrote: >> >> (2) it uses PIPE_FORMAT_INT_* names with the lsb first rather than the >> mesa-like ones with msb first. (I'm happy to change the names to >> something else though.) >> >> The patch isn't in a subm

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Michel Dänzer
On Die, 2013-06-04 at 10:47 +0100, Richard Sandiford wrote: > > (2) it uses PIPE_FORMAT_INT_* names with the lsb first rather than the > mesa-like ones with msb first. (I'm happy to change the names to > something else though.) > > The patch isn't in a submittable state yet. I just thou

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Jose Fonseca
- Original Message - > Jose Fonseca writes: > >> Yeah, that's what the patch was trying to do.  Even though the formats > >> were defined as "int"s, the int layout was extra information on top of > >> what's already there.  The int information didn't change or replace the > >> array inform

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Jose Fonseca
- Original Message - > On Die, 2013-06-04 at 01:15 -0700, Jose Fonseca wrote: > > - Original Message - > > > Michel Dänzer writes: > > > > On Fre, 2013-05-24 at 09:11 -0700, Jose Fonseca wrote: > > > >> > > > >> I agree that with non-array formats, like B5G6R5 and R5G6B5, replac

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Richard Sandiford
Jose Fonseca writes: >> Yeah, that's what the patch was trying to do. Even though the formats >> were defined as "int"s, the int layout was extra information on top of >> what's already there. The int information didn't change or replace the >> array information. >> >> So the idea is that the a

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Jose Fonseca
- Original Message - > - Original Message - > > Michel Dänzer writes: > > > On Fre, 2013-05-24 at 09:11 -0700, Jose Fonseca wrote: > > >> > > >> I agree that with non-array formats, like B5G6R5 and R5G6B5, replacing > > >> them with endian-variant BGR565 and RGB565 makes a lot o

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Michel Dänzer
On Die, 2013-06-04 at 01:15 -0700, Jose Fonseca wrote: > - Original Message - > > Michel Dänzer writes: > > > On Fre, 2013-05-24 at 09:11 -0700, Jose Fonseca wrote: > > >> > > >> I agree that with non-array formats, like B5G6R5 and R5G6B5, replacing > > >> them with endian-variant BGR565

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Jose Fonseca
- Original Message - > Michel Dänzer writes: > > On Fre, 2013-05-24 at 09:11 -0700, Jose Fonseca wrote: > >> > >> I agree that with non-array formats, like B5G6R5 and R5G6B5, replacing > >> them with endian-variant BGR565 and RGB565 makes a lot of sense (as > >> the swapped version will p

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-28 Thread Richard Sandiford
Michel Dänzer writes: > On Fre, 2013-05-24 at 09:11 -0700, Jose Fonseca wrote: >> >> I agree that with non-array formats, like B5G6R5 and R5G6B5, replacing >> them with endian-variant BGR565 and RGB565 makes a lot of sense (as >> the swapped version will probably never be needed). >> >> But I'm

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-27 Thread Michel Dänzer
On Fre, 2013-05-24 at 09:11 -0700, Jose Fonseca wrote: > > I agree that with non-array formats, like B5G6R5 and R5G6B5, replacing > them with endian-variant BGR565 and RGB565 makes a lot of sense (as > the swapped version will probably never be needed). > > But I'm not sure about RGBA8 variants.

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-24 Thread Jose Fonseca
- Original Message - > Michel Dänzer writes: > >> > For packed formats such as RGBA, the order used in these patches > >> > (which is what I suggested in my proposal) matches the order humans use > >> > for digits of numbers, as well as the Mesa formats. That seems more > >> > import

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-22 Thread Richard Sandiford
Michel Dänzer writes: >> > For packed formats such as RGBA, the order used in these patches >> > (which is what I suggested in my proposal) matches the order humans use >> > for digits of numbers, as well as the Mesa formats. That seems more >> > important to me than 'matching' any non-packed

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-22 Thread Michel Dänzer
On Mit, 2013-05-22 at 01:56 -0700, Jose Fonseca wrote: > - Original Message - > > On Die, 2013-05-21 at 23:15 -0700, Jose Fonseca wrote: > > > - Original Message - > > > > Jose Fonseca writes: > > > > > - Original Message - > > > > >> From: Richard Sandiford > > > > >> >

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-22 Thread Jose Fonseca
- Original Message - > On Die, 2013-05-21 at 23:15 -0700, Jose Fonseca wrote: > > > > - Original Message - > > > Jose Fonseca writes: > > > > - Original Message - > > > >> From: Richard Sandiford > > > >> > > > >> RGBA has R at byte 0 and A at byte 3, regardless of

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-22 Thread Michel Dänzer
On Die, 2013-05-21 at 23:15 -0700, Jose Fonseca wrote: > > - Original Message - > > Jose Fonseca writes: > > > - Original Message - > > >> From: Richard Sandiford > > >> > > >> RGBA has R at byte 0 and A at byte 3, regardless of platform > > >> endianness. > > > > > > Maybe

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-21 Thread Jose Fonseca
- Original Message - > Hi Jose, > > Thanks for the review. > > Jose Fonseca writes: > > - Original Message - > >> From: Richard Sandiford > >> > >> RGBA has R at byte 0 and A at byte 3, regardless of platform > >> endianness. > > > > Maybe I'm missing something, but this

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-20 Thread Richard Sandiford
Hi Jose, Thanks for the review. Jose Fonseca writes: > - Original Message - >> From: Richard Sandiford >> >> RGBA has R at byte 0 and A at byte 3, regardless of platform >> endianness. > > Maybe I'm missing something, but this naming convention seems to me > the exact opposite of w

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-17 Thread Jose Fonseca
- Original Message - > From: Richard Sandiford > > RGBA has R at byte 0 and A at byte 3, regardless of platform > endianness. Maybe I'm missing something, but this naming convention seems to me the exact opposite of what was decided [1], which is: - R at byte 0, ..., and A at byte

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-16 Thread Marek Olšák
It should be documented somewhere why certain formats are named xyzw and the others are named x8y8z8w8. Marek On Thu, May 16, 2013 at 3:06 PM, Adam Jackson wrote: > From: Richard Sandiford > > RGBA has R at byte 0 and A at byte 3, regardless of platform > endianness. > > Reviewed-by: Ad

[Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-16 Thread Adam Jackson
From: Richard Sandiford RGBA has R at byte 0 and A at byte 3, regardless of platform endianness. Reviewed-by: Adam Jackson --- src/gallium/include/pipe/p_format.h | 38 + 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/src/gallium/include/