mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 18:58:10 +02:00
nv40: dump meaningful names for surface formats
This commit is contained in:
parent
7b938431d0
commit
14de997d5d
2 changed files with 8 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ static struct nv40_texture_format *
|
|||
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)
|
||||
|
|
@ -48,6 +49,8 @@ nv40_fragtex_format(uint pipe_format)
|
|||
tf++;
|
||||
}
|
||||
|
||||
pf_sprint_name(fs, pipe_format);
|
||||
NOUVEAU_ERR("unknown texture format %s\n", fs);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,9 +30,13 @@ nv40_vbo_type(uint format)
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue