summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-04-20 13:08:55 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-04-20 13:10:27 -0700
commit73c0f9f0f45b11a6a63d8f5e81a498d1362b7a04 (patch)
tree59a8431a0733a07a8c7360bc7388b3f3b8f07cf8 /src/gallium
parent3a5b82f3351a0023bfb0594010377c7671c06e28 (diff)
r300g: Spill a bit more info about implementation errors in surface_copy.
compiz appears to hit this. Weird.
Diffstat (limited to 'src/gallium')
-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 e15c71eef65..928ad300eee 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,