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.
This commit is contained in:
Robert Ellison 2008-11-20 10:00:51 -07:00
parent ef2bf418b4
commit 85063fe943

View file

@ -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));
}
}