[Mesa-dev] [PATCH 4/7] util: use util_format_is_subset() in util_blit_pixels_writemask()
Brian Paul
brian.e.paul at gmail.com
Mon Feb 27 19:29:59 PST 2012
From: Brian Paul <brianp at vmware.com>
---
src/gallium/auxiliary/util/u_blit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c
index a10fd17..254e4ab 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -377,7 +377,7 @@ util_blit_pixels_writemask(struct blit_state *ctx,
* no overlapping.
* Filter mode should not matter since there's no stretching.
*/
- if (dst_format == src_format &&
+ if (util_format_is_subset(dst_format, src_format) &&
srcX0 < srcX1 &&
dstX0 < dstX1 &&
srcY0 < srcY1 &&
--
1.7.1
More information about the mesa-dev
mailing list