summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/r300/r300_blit.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index e15c71eef6..928ad300ee 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -126,7 +126,13 @@ void r300_surface_copy(struct pipe_context* pipe,
enum pipe_format old_format = dst->texture->format;
enum pipe_format new_format = old_format;
- assert(dst->texture->format == src->texture->format);
+ if (dst->texture->format != src->texture->format) {
+ debug_printf("r300: Implementation error: Format mismatch in %s\n"
+ " : src: %s dst: %s\n", __FUNCTION__,
+ util_format_name(src->texture->format),
+ util_format_name(dst->texture->format));
+ debug_assert(0);
+ }
if (!pipe->screen->is_format_supported(pipe->screen,
old_format, src->texture->target,