Mesa (gallium-0.2): CELL: improve twiddling/untwiddling error text
Robert Ellison
papillo at kemper.freedesktop.org
Thu Nov 20 17:03:19 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 85063fe9438cece2d338cd6e4deea5c081943aa4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=85063fe9438cece2d338cd6e4deea5c081943aa4
Author: Robert Ellison <papillo at tungstengraphics.com>
Date: Thu Nov 20 10:00:51 2008 -0700
CELL: improve twiddling/untwiddling error text
As suggested by Brian Paul: in the case of a twiddling error, instead
of reporting the bad format number (which is all but unusable), report
the more useful enum name.
---
src/gallium/drivers/cell/ppu/cell_texture.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/cell/ppu/cell_texture.c b/src/gallium/drivers/cell/ppu/cell_texture.c
index 47cd960..9f83ab8 100644
--- a/src/gallium/drivers/cell/ppu/cell_texture.c
+++ b/src/gallium/drivers/cell/ppu/cell_texture.c
@@ -338,7 +338,7 @@ cell_twiddle_texture(struct pipe_screen *screen,
}
break;
default:
- printf("Cell: twiddle unsupported texture format 0x%x\n", ct->base.format);
+ printf("Cell: twiddle unsupported texture format %s\n", pf_name(ct->base.format));
;
}
@@ -384,7 +384,7 @@ cell_untwiddle_texture(struct pipe_screen *screen,
default:
{
ct->untiled_data[level] = NULL;
- printf("Cell: untwiddle unsupported texture format 0x%x\n", ct->base.format);
+ printf("Cell: untwiddle unsupported texture format %s\n", pf_name(ct->base.format));
}
}
More information about the mesa-commit
mailing list