diff options
author | Robert Ellison <[email protected]> | 2008-11-20 10:00:51 -0700 |
---|---|---|
committer | Robert Ellison <[email protected]> | 2008-11-20 10:01:21 -0700 |
commit | 85063fe9438cece2d338cd6e4deea5c081943aa4 (patch) | |
tree | 3f7409ab330085d927bf51951dd0b11ee30aed76 | |
parent | ef2bf418b45c7966e9fe78359058b8d44f570be1 (diff) |
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.
-rw-r--r-- | 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 47cd9605c85..9f83ab8fa4c 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)); } } |