gallium: added some assertions to be sure the blit's surface formats are suitable

This commit is contained in:
Brian Paul 2008-04-29 12:55:41 -06:00
parent dd9dc7df80
commit 733bc4df1a

View file

@ -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.