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 85878d5fcc70875838e7009bc641b3c80f92ae5f..7de2f1f1d0f75f2b294d6be2ff2e4ab8c7ffea1d 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 c464904d6d469b2a9c0d4bb299fd1925ff3c92aa..54443bdccc002c81c6d6e1b9ee0c94e0d4d6f1c2 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);