nouveau: pf_sprint_name -> pf_name
[mesa.git] / src / gallium / drivers / nv40 / nv40_fragtex.c
index 2d45c2545cda30191abcd746aa727e196bd693cc..566d5a8d5ba300470080a24312cddd73c3ccc22d 100644 (file)
@@ -45,7 +45,6 @@ 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)
@@ -53,8 +52,7 @@ nv40_fragtex_format(uint pipe_format)
                tf++;
        }
 
-       pf_sprint_name(fs, pipe_format);
-       NOUVEAU_ERR("unknown texture format %s\n", fs);
+       NOUVEAU_ERR("unknown texture format %s\n", pf_name(pipe_format));
        return NULL;
 }