Browse Source

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.
tags/mesa_20090313
Robert Ellison 17 years ago
parent
commit
85063fe943
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/gallium/drivers/cell/ppu/cell_texture.c

+ 2
- 2
src/gallium/drivers/cell/ppu/cell_texture.c 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));
}
}


Loading…
Cancel
Save