nv50,nvc0: add a note when converting vertex elements using CPU
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 27 Dec 2015 20:13:21 +0000 (15:13 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Dec 2015 00:49:44 +0000 (19:49 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_vbo.c
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c

index 85878d5..7de2f1f 100644 (file)
@@ -91,6 +91,9 @@ nv50_vertex_state_create(struct pipe_context *pipe,
             }
             so->element[i].state = nv50_format_table[fmt].vtx;
             so->need_conversion = true;
+            pipe_debug_message(&nouveau_context(pipe)->debug, FALLBACK,
+                               "Converting vertex element %d, no hw format %s",
+                               i, util_format_name(ve->src_format));
         }
         so->element[i].state |= i;
 
index c464904..54443bd 100644 (file)
@@ -95,6 +95,9 @@ nvc0_vertex_state_create(struct pipe_context *pipe,
             }
             so->element[i].state = nvc0_format_table[fmt].vtx;
             so->need_conversion = true;
+            pipe_debug_message(&nouveau_context(pipe)->debug, FALLBACK,
+                               "Converting vertex element %d, no hw format %s",
+                               i, util_format_name(ve->src_format));
         }
         size = util_format_get_blocksize(fmt);