Mesa (main): zink: remove no longer used internal resource function
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 27 00:05:29 UTC 2021
Module: Mesa
Branch: main
Commit: 7665e656c1a5cab8f05b7de4aeb461e9ead9f739
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7665e656c1a5cab8f05b7de4aeb461e9ead9f739
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Jul 7 09:43:07 2021 -0400
zink: remove no longer used internal resource function
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12008>
---
src/gallium/drivers/zink/zink_resource.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c
index b4a975bbcbd..e51f113f19f 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -78,19 +78,6 @@ debug_describe_zink_resource_object(char *buf, const struct zink_resource_object
sprintf(buf, "zink_resource_object");
}
-static uint32_t
-get_resource_usage(struct zink_resource *res)
-{
- bool reads = zink_batch_usage_exists(res->obj->reads);
- bool writes = zink_batch_usage_exists(res->obj->writes);
- uint32_t batch_uses = 0;
- if (reads)
- batch_uses |= ZINK_RESOURCE_ACCESS_READ;
- if (writes)
- batch_uses |= ZINK_RESOURCE_ACCESS_WRITE;
- return batch_uses;
-}
-
static uint32_t
mem_hash(const void *key)
{
More information about the mesa-commit
mailing list