summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40/nv40_fragtex.c
diff options
context:
space:
mode:
authorBen Skeggs <darktama@beleth.(none)>2008-02-25 12:26:48 +1100
committerBen Skeggs <darktama@beleth.(none)>2008-02-25 12:26:48 +1100
commit14de997d5df48512c751c627ab19d486691f591d (patch)
tree67fd6e26bc362714c1fef371db63a1ead533b771 /src/gallium/drivers/nv40/nv40_fragtex.c
parent7b938431d0ab5ccce1e7e2b1c38e1dcbdc6001e8 (diff)
nv40: dump meaningful names for surface formats
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_fragtex.c')
-rw-r--r--src/gallium/drivers/nv40/nv40_fragtex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv40/nv40_fragtex.c b/src/gallium/drivers/nv40/nv40_fragtex.c
index c8a8120f305..7adee8858d0 100644
--- a/src/gallium/drivers/nv40/nv40_fragtex.c
+++ b/src/gallium/drivers/nv40/nv40_fragtex.c
@@ -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;
}