From: Brian Paul Date: Tue, 29 Apr 2008 18:55:41 +0000 (-0600) Subject: gallium: added some assertions to be sure the blit's surface formats are suitable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=733bc4df1a53bb1899933685e06c52109d096bee;p=mesa.git gallium: added some assertions to be sure the blit's surface formats are suitable --- diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c index 1105066cb82..9e9912c6e46 100644 --- a/src/gallium/auxiliary/util/u_blit.c +++ b/src/gallium/auxiliary/util/u_blit.c @@ -264,6 +264,9 @@ util_blit_pixels(struct blit_state *ctx, dstY1 = tmp; } + assert(screen->is_format_supported(screen, src->format, PIPE_TEXTURE)); + assert(screen->is_format_supported(screen, dst->format, PIPE_SURFACE)); + /* * XXX for now we're always creating a temporary texture. * Strictly speaking that's not always needed.