summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-08-11 16:14:42 +1000
committerBen Skeggs <[email protected]>2008-08-11 16:14:42 +1000
commitdf4228deddea36b9d5b41ea395a216137e046205 (patch)
tree051d9c172689657a2c5670a7d0d3ca1b849d74e6 /src/gallium/drivers/nv50
parentf56eda6a85912dee9eef9099f6023c6bab05a41a (diff)
nouveau: pf_sprint_name -> pf_name
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/nv50_state_validate.c14
-rw-r--r--src/gallium/drivers/nv50/nv50_vbo.c5
2 files changed, 6 insertions, 13 deletions
diff --git a/src/gallium/drivers/nv50/nv50_state_validate.c b/src/gallium/drivers/nv50/nv50_state_validate.c
index 8f9ee05acc8..198e25f4482 100644
--- a/src/gallium/drivers/nv50/nv50_state_validate.c
+++ b/src/gallium/drivers/nv50/nv50_state_validate.c
@@ -58,11 +58,8 @@ nv50_state_validate_fb(struct nv50_context *nv50)
so_data(so, 0xe8);
break;
default:
- {
- char fmt[128];
- pf_sprint_name(fmt, fb->cbufs[i]->format);
- NOUVEAU_ERR("AIIII unknown format %s\n", fmt);
- }
+ NOUVEAU_ERR("AIIII unknown format %s\n",
+ pf_name(fb->cbufs[i]->format));
so_data(so, 0xe6);
break;
}
@@ -96,11 +93,8 @@ nv50_state_validate_fb(struct nv50_context *nv50)
so_data(so, 0x15);
break;
default:
- {
- char fmt[128];
- pf_sprint_name(fmt, fb->zsbuf->format);
- NOUVEAU_ERR("AIIII unknown format %s\n", fmt);
- }
+ NOUVEAU_ERR("AIIII unknown format %s\n",
+ pf_name(fb->zsbuf->format));
so_data(so, 0x16);
break;
}
diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c
index 8e420ad172e..c94531723bc 100644
--- a/src/gallium/drivers/nv50/nv50_vbo.c
+++ b/src/gallium/drivers/nv50/nv50_vbo.c
@@ -215,9 +215,8 @@ nv50_vbo_validate(struct nv50_context *nv50)
break;
default:
{
- char fmt[128];
- pf_sprint_name(fmt, ve->src_format);
- NOUVEAU_ERR("invalid vbo format %s\n", fmt);
+ NOUVEAU_ERR("invalid vbo format %s\n",
+ pf_name(ve->src_format));
assert(0);
return;
}