mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
ef2bf418b4
commit
85063fe943
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue