summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-03-04 15:58:02 -0700
committerBrian Paul <[email protected]>2016-03-07 09:33:15 -0700
commit903afc370fb925ce637c90d694ef1e4052a1a80f (patch)
tree45d175d3c2a25b2754a2e97170cc8bb7b409d527 /src/gallium/drivers/svga
parent0941ef3dd57e692ee1a897ed83bd887d0cebdc63 (diff)
svga: also dump SVGA3D_BUFFER surfaces in svga_screen_cache_dump()
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_screen_cache.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c
index 5b441295715..321c564e7f5 100644
--- a/src/gallium/drivers/svga/svga_screen_cache.c
+++ b/src/gallium/drivers/svga/svga_screen_cache.c
@@ -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,