summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-06-27 14:35:13 -0700
committerKenneth Graunke <[email protected]>2019-06-27 16:56:15 -0700
commit0d6fc6f07e62f2c6f9cc5698e241ed83add1354d (patch)
tree15589efa0a6bf0fc73a9595c1e811f7d73fc43ee /src/gallium/auxiliary
parent02f6995d76c9fa0fdbc7a89013f4968970ab016e (diff)
gallium: Teach GALLIUM_REFCNT_LOG about array textures
Otherwise they are classified as pipe_martian_resource, and don't contain any helpful information about the texture. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_debug_describe.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_debug_describe.c b/src/gallium/auxiliary/util/u_debug_describe.c
index 4bcd5624af4..621cdbebac2 100644
--- a/src/gallium/auxiliary/util/u_debug_describe.c
+++ b/src/gallium/auxiliary/util/u_debug_describe.c
@@ -58,6 +58,15 @@ debug_describe_resource(char* buf, const struct pipe_resource *ptr)
case PIPE_TEXTURE_3D:
util_sprintf(buf, "pipe_texture3d<%u,%u,%u,%s,%u>", ptr->width0, ptr->height0, ptr->depth0, util_format_short_name(ptr->format), ptr->last_level);
break;
+ case PIPE_TEXTURE_1D_ARRAY:
+ util_sprintf(buf, "pipe_texture_1darray<%u,%u,%s,%u>", ptr->width0, ptr->array_size, util_format_short_name(ptr->format), ptr->last_level);
+ break;
+ case PIPE_TEXTURE_2D_ARRAY:
+ util_sprintf(buf, "pipe_texture_2darray<%u,%u,%u,%s,%u>", ptr->width0, ptr->height0, ptr->array_size, util_format_short_name(ptr->format), ptr->last_level);
+ break;
+ case PIPE_TEXTURE_CUBE_ARRAY:
+ util_sprintf(buf, "pipe_texture_cubearray<%u,%u,%u,%s,%u>", ptr->width0, ptr->height0, ptr->array_size, util_format_short_name(ptr->format), ptr->last_level);
+ break;
default:
util_sprintf(buf, "pipe_martian_resource<%u>", ptr->target);
break;