nv40_fragtex_format(uint pipe_format)
{
struct nv40_texture_format *tf = nv40_texture_formats;
+ char fs[128];
while (tf->defined) {
if (tf->pipe == pipe_format)
tf++;
}
+ pf_sprint_name(fs, pipe_format);
+ NOUVEAU_ERR("unknown texture format %s\n", fs);
return NULL;
}
case PIPE_FORMAT_TYPE_UNORM:
return NV40TCL_VTXFMT_TYPE_UBYTE;
default:
- NOUVEAU_ERR("Unknown format 0x%08x\n", format);
+ {
+ char fs[128];
+ pf_sprint_name(fs, format);
+ NOUVEAU_ERR("Unknown format %s\n", fs);
return NV40TCL_VTXFMT_TYPE_FLOAT;
}
+ }
}
static boolean