Mesa (master): iris: Drop iris_print_program_cache().
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jan 22 00:26:49 UTC 2021
Module: Mesa
Branch: master
Commit: 4423903089ad8e4ff6224437895dbc6c19f75a54
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4423903089ad8e4ff6224437895dbc6c19f75a54
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Tue Nov 17 13:39:57 2020 -0800
iris: Drop iris_print_program_cache().
I have never used this to debug anything in iris, and it's been years
since I even thought about using i965's similar functionality. I'm
planning to move a bunch of shaders out of the global hash table, at
which point it'll be much less useful. So, just drop it.
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8634>
---
src/gallium/drivers/iris/iris_context.h | 1 -
src/gallium/drivers/iris/iris_program_cache.c | 23 -----------------------
2 files changed, 24 deletions(-)
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h
index 3a120ee6ed5..830dc223499 100644
--- a/src/gallium/drivers/iris/iris_context.h
+++ b/src/gallium/drivers/iris/iris_context.h
@@ -886,7 +886,6 @@ iris_disk_cache_retrieve(struct iris_context *ice,
void iris_init_program_cache(struct iris_context *ice);
void iris_destroy_program_cache(struct iris_context *ice);
-void iris_print_program_cache(struct iris_context *ice);
struct iris_compiled_shader *iris_find_cached_shader(struct iris_context *ice,
enum iris_program_cache_id,
uint32_t key_size,
diff --git a/src/gallium/drivers/iris/iris_program_cache.c b/src/gallium/drivers/iris/iris_program_cache.c
index b5d1c7a5afa..357c9eec1d3 100644
--- a/src/gallium/drivers/iris/iris_program_cache.c
+++ b/src/gallium/drivers/iris/iris_program_cache.c
@@ -330,26 +330,3 @@ iris_destroy_program_cache(struct iris_context *ice)
ralloc_free(ice->shaders.cache);
}
-
-static const char *
-cache_name(enum iris_program_cache_id cache_id)
-{
- if (cache_id == IRIS_CACHE_BLORP)
- return "BLORP";
-
- return _mesa_shader_stage_to_string(cache_id);
-}
-
-void
-iris_print_program_cache(struct iris_context *ice)
-{
- struct iris_screen *screen = (struct iris_screen *)ice->ctx.screen;
- const struct gen_device_info *devinfo = &screen->devinfo;
-
- hash_table_foreach(ice->shaders.cache, entry) {
- const struct keybox *keybox = entry->key;
- struct iris_compiled_shader *shader = entry->data;
- fprintf(stderr, "%s:\n", cache_name(keybox->cache_id));
- gen_disassemble(devinfo, shader->map, 0, stderr);
- }
-}
More information about the mesa-commit
mailing list