mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
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@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8634>
This commit is contained in:
parent
5e2c799d0e
commit
4423903089
2 changed files with 0 additions and 24 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue