Mesa (main): ir3: Support disabling the pipeline cache
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri May 13 17:52:17 UTC 2022
Module: Mesa
Branch: main
Commit: ea646ac9afbfaddc129fb401a6cb57a46c0ef5b4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea646ac9afbfaddc129fb401a6cb57a46c0ef5b4
Author: Connor Abbott <cwabbott0 at gmail.com>
Date: Tue Feb 1 20:59:22 2022 +0100
ir3: Support disabling the pipeline cache
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16147>
---
src/freedreno/ir3/ir3_compiler.c | 3 ++-
src/freedreno/ir3/ir3_compiler.h | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/freedreno/ir3/ir3_compiler.c b/src/freedreno/ir3/ir3_compiler.c
index eac61f06682..0cfbefb77b7 100644
--- a/src/freedreno/ir3/ir3_compiler.c
+++ b/src/freedreno/ir3/ir3_compiler.c
@@ -328,7 +328,8 @@ ir3_compiler_create(struct fd_device *dev, const struct fd_dev_id *dev_id,
compiler->nir_options = nir_options;
}
- ir3_disk_cache_init(compiler);
+ if (!options->disable_cache)
+ ir3_disk_cache_init(compiler);
return compiler;
}
diff --git a/src/freedreno/ir3/ir3_compiler.h b/src/freedreno/ir3/ir3_compiler.h
index 65239119ac6..cebd3e45a50 100644
--- a/src/freedreno/ir3/ir3_compiler.h
+++ b/src/freedreno/ir3/ir3_compiler.h
@@ -198,6 +198,11 @@ struct ir3_compiler_options {
* constants for it can be pre-baked when compiling the shader.
*/
bool push_ubo_with_preamble;
+
+ /* If true, disable the shader cache. The driver is then responsible for
+ * caching.
+ */
+ bool disable_cache;
};
void ir3_compiler_destroy(struct ir3_compiler *compiler);
More information about the mesa-commit
mailing list