Michel Dänzer wrote:
> On Fri, 2006-09-22 at 10:58 +0100, Keith Whitwell wrote:
>> Michel Dänzer wrote:
>>> On Fri, 2006-09-22 at 10:41 +0100, Keith Whitwell wrote:
>>>> Michel Dänzer wrote:
>>>>
>>>>> - if (dstFormat == &_mesa_texformat_argb8888) {
>>>>> + if (!littleEndian || dstFormat == &_mesa_texformat_argb8888) {
>>>> In cases like this, wouldn't you want the exclusive or of the two
>>>> values, ie
>>>>
>>>> ((littleEndian && dstFormat == &_mesa_texformat_argb8888) ||
>>>> (!littleEndian && dstFormat == &_mesa_texformat_argb8888_rev))
>>>>
>>>> I don't think it makes sense otherwise - you'll always end up using one
>>>> translation regardless of the texformat.
>>> Right, thanks. How about this?
>> Wouldn't it be necessary to do similar byte-swapping for all the other
>> texture formats that the swizzle path is being activated on?
>
> Tried that (via byte swapping as an added first mapping in
> _mesa_swizzle_ubyte_image()), glean breaks. I don't understand why it's
> needed in this case but not the others though.
I can see it breaking glean for the Mesa software formats as they are
arrays rather than packed values, so should never need swapping. For
the others, I can't begin to guess.
Maybe enable for the paths that are well understood and tested, but
where it is still behaving contrary to expectations, leave it disabled.
I'd say it is behaving as expected in the software mesa cases and
argb8888.
Keith
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev