Kenneth Graunke <[email protected]> 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 <[email protected]>
> - 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.
pgpavFJap_Xv_.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
