With debug flags enabled, shaders might get compiled differently and
running compilation might be desired e.g. for logging, so don't try to
cache them.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21776>
#include <assert.h>
#include <stdio.h>
+#include "asahi/compiler/agx_debug.h"
#include "compiler/shader_enums.h"
#include "util/blob.h"
#include "util/build_id.h"
agx_disk_cache_init(struct agx_screen *screen)
{
#ifdef ENABLE_SHADER_CACHE
+ if (agx_compiler_debug || screen->dev.debug)
+ return;
+
const char *renderer = screen->pscreen.get_name(&screen->pscreen);
const struct build_id_note *note =