[Mesa-dev] [PATCH 2/5] gallium: Add support for 5551 with the 1-bit field in the low bit.

Eric Anholt eric at anholt.net
Wed May 3 22:24:15 UTC 2017


Roland Scheidegger <sroland at vmware.com> writes:

> Am 02.05.2017 um 21:33 schrieb Eric Anholt:
>> ---
>> 
>> Do I have the swizzles right here?  It's a bit complicated because I
>> have a reswizzle in vc4, so I may have just massaged things to work
>> out in my case.  I tried a lot of combinations trying to specify BE
>> swizzles in a way that wouldn't assertion fail in the python script,
>> with no luck.
>
> For BE shouldn't this just be un5,un5,un5,un1(x1),xyzw(1)?
> Otherwise this looks alright to me. But don't take my word for it I
> often get confused here :-).
> Though you only say "1-bit field in the low bit" so I don't know what
> ordering you really want - that still leaves the choice of the two
> common abgr and argb orderings :-). But the name and swizzles seem to
> agree here as far as I can tell...

That seems to work.  Not sure how I missed that option before.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170503/d367dee9/attachment.sig>


More information about the mesa-dev mailing list