Kenneth Graunke <kenn...@whitecape.org> writes:

> There's really no reason to limit ourselves to a single format; the
> technique works just as well for any format in this family.
>
> Signed-off-by: Kenneth Graunke <kenn...@whitecape.org>


> -   if (src_mt->format == MESA_FORMAT_B8G8R8X8_UNORM &&
> -       dst_mt->format == MESA_FORMAT_B8G8R8A8_UNORM) {
> +   if (src_mt->format != dst_mt->format &&
> +       _mesa_format_x_to_a(src_mt->format) == dst_mt->format) {
>        intel_miptree_set_alpha_to_one(brw, dst_mt,
>                                       dst_x, dst_y,
>                                       width, height);

intel_miptree_set_alpha_to_one only works for B8G8R8A8 -- you can't
convince the blitter to set arbitrary subsets of bits.

Attachment: pgpavFJap_Xv_.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to