Mesa (master): util: fix incorrect assertion

Keith Whitwell keithw at kemper.freedesktop.org
Thu Aug 13 14:59:02 UTC 2009


Module: Mesa
Branch: master
Commit: 9676ed27fe1f59956779ca4a612929e0cf61e3a3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9676ed27fe1f59956779ca4a612929e0cf61e3a3

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Aug  6 14:58:01 2009 -0600

util: fix incorrect assertion

Check that the dest surface/format is renderable.

---

 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 ebf3f14..cda6dbd 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -326,7 +326,7 @@ util_blit_pixels(struct blit_state *ctx,
    assert(screen->is_format_supported(screen, src->format, PIPE_TEXTURE_2D,
                                       PIPE_TEXTURE_USAGE_SAMPLER, 0));
    assert(screen->is_format_supported(screen, dst->format, PIPE_TEXTURE_2D,
-                                      PIPE_TEXTURE_USAGE_SAMPLER, 0));
+                                      PIPE_TEXTURE_USAGE_RENDER_TARGET, 0));
 
    /* do the regions overlap? */
    overlap = util_same_surface(src, dst) &&




More information about the mesa-commit mailing list