Mesa (master): gallium/radeon: disable the cache when nir backend enabled

Timothy Arceri tarceri at kemper.freedesktop.org
Tue Nov 14 21:47:42 UTC 2017


Module: Mesa
Branch: master
Commit: 5041ea96a0544283c3cf3885d6e2d2d0ba4857f5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5041ea96a0544283c3cf3885d6e2d2d0ba4857f5

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Mon Nov 13 11:34:31 2017 +1100

gallium/radeon: disable the cache when nir backend enabled

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

 src/gallium/drivers/radeon/r600_pipe_common.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index 68bde2ad18..ce612113c5 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -689,6 +689,10 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen)
 	if (rscreen->debug_flags & DBG_ALL_SHADERS)
 		return;
 
+	/* TODO: remove this once gallium supports a nir cache */
+	if (rscreen->debug_flags & DBG(NIR))
+		return;
+
 	uint32_t mesa_timestamp;
 	if (disk_cache_get_function_timestamp(r600_disk_cache_create,
 					      &mesa_timestamp)) {




More information about the mesa-commit mailing list