From 73c0f9f0f45b11a6a63d8f5e81a498d1362b7a04 Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Tue, 20 Apr 2010 13:08:55 -0700 Subject: r300g: Spill a bit more info about implementation errors in surface_copy. compiz appears to hit this. Weird. --- src/gallium/drivers/r300/r300_blit.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/r300') 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, -- cgit v1.2.3