gallium/radeon: disable the cache when nir backend enabled
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 13 Nov 2017 00:34:31 +0000 (11:34 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 14 Nov 2017 21:47:31 +0000 (08:47 +1100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index 68bde2ad18aaa7892bfb4fe7d72eea1294993294..ce612113c51d2e93ad1a940d510d0a0dd183ff30 100644 (file)
@@ -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)) {