[Mesa-dev] Uploading PIPE_FORMAT_B8G8R8A8_UNORM to pixmap texture in PIPE_FORMAT_B8G8R8X8_UNORM

José Fonseca jfonseca at vmware.com
Wed Dec 15 12:12:51 PST 2010


Jerome,

Hmm. B8G8R8A8 -> B8G8R8X8 should be accepted by
util_is_format_compatible.

It looks like util_is_format_compatible arguments are swapped, ie., it
should be 

    assert(util_is_format_compatible(util_format_description(src->format), util_format_description(dst->format)));

instead of 

    assert(util_is_format_compatible(util_format_description(dst->format), util_format_description(src->format)));

Jose



On Wed, 2010-12-15 at 10:55 -0800, Jerome Glisse wrote:
> Hi,
> 
> I am facing an issue which i am not sure what is the proper things to
> do about. piglit tfp test try to upload PIPE_FORMAT_B8G8R8A8_UNORM to
> texture pixmap which is  PIPE_FORMAT_B8G8R8X8_UNORM r600g assert in
> blitter util because format are not compatible. Should all pixmap
> texture considered with A8 ? Should i just disable the assert in case
> of A->X convertion ? Other answer ?
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=32370
> 
> Cheers,
> Jerome
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev




More information about the mesa-dev mailing list