pan/decode: Fix uniform printing
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 21 Aug 2019 21:15:05 +0000 (14:15 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 22 Aug 2019 19:54:35 +0000 (12:54 -0700)
Lazypasting from UBOs.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/pandecode/decode.c

index 1b88bbb12e86150b16bc1282d7dee89384303e37..67e2514c46228cd1cba978a5e7a511e32f4b1d01 100644 (file)
@@ -1981,7 +1981,7 @@ pandecode_vertex_tiler_postfix_pre(
                         uniform_count = s->bifrost2.uniform_count;
                         uniform_buffer_count = s->bifrost1.uniform_buffer_count;
                 } else {
-                        uniform_count = s->midgard1.uniform_buffer_count;
+                        uniform_count = s->midgard1.uniform_count;
                         uniform_buffer_count = s->midgard1.uniform_buffer_count;
                 }
 
@@ -2208,9 +2208,9 @@ pandecode_vertex_tiler_postfix_pre(
                 if (uniform_count)
                         pandecode_validate_buffer(p->uniforms, uniform_count * 16);
                 else
-                        pandecode_msg("XXX: Uniforms specified but not referenced");
+                        pandecode_msg("XXX: Uniforms specified but not referenced\n");
         } else if (uniform_count)
-                pandecode_msg("XXX: UBOs referenced but not specified\n");
+                pandecode_msg("XXX: Uniforms referenced but not specified\n");
 
         if (p->texture_trampoline) {
                 struct pandecode_mapped_memory *mmem = pandecode_find_mapped_gpu_mem_containing(p->texture_trampoline);