svga: also dump SVGA3D_BUFFER surfaces in svga_screen_cache_dump()
authorBrian Paul <brianp@vmware.com>
Fri, 4 Mar 2016 22:58:02 +0000 (15:58 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 7 Mar 2016 16:33:15 +0000 (09:33 -0700)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_screen_cache.c

index 5b4412957157607a9ceb95ecb5f251f17712e464..321c564e7f551152c6612ce5d2edce36c2bb72cd 100644 (file)
@@ -563,8 +563,14 @@ svga_screen_cache_dump(const struct svga_screen *svgascreen)
          struct svga_host_surface_cache_entry *entry =
             LIST_ENTRY(struct svga_host_surface_cache_entry,
                        curr, bucket_head);
-         if (entry->key.format != 37) {
-            debug_printf("  %u x %u x %u format %u\n",
+         if (entry->key.format == SVGA3D_BUFFER) {
+            debug_printf("  %p: buffer %u bytes\n",
+                         entry->handle,
+                         entry->key.size.width);
+         }
+         else {
+            debug_printf("  %p: %u x %u x %u format %u\n",
+                         entry->handle,
                          entry->key.size.width,
                          entry->key.size.height,
                          entry->key.size.depth,