From 30703e1d7d0597b4961a79469b227b3db2cf353c Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Thu, 25 Sep 2025 17:37:16 +0200 Subject: [PATCH] freedreno/computerator: disable disk cache Fixes a crash during startup because `build_id_find_nhdr_for_addr` returns null. Besides that, using the compiler cache is meaningless for computerator. Signed-off-by: Job Noorman Part-of: --- src/freedreno/computerator/a4xx.cc | 4 +++- src/freedreno/computerator/a6xx.cc | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/freedreno/computerator/a4xx.cc b/src/freedreno/computerator/a4xx.cc index a5d2ca0e346..279791a1597 100644 --- a/src/freedreno/computerator/a4xx.cc +++ b/src/freedreno/computerator/a4xx.cc @@ -345,7 +345,9 @@ a4xx_init(struct fd_device *dev, const struct fd_dev_id *dev_id) .emit_grid = a4xx_emit_grid, }; - struct ir3_compiler_options compiler_options = {}; + struct ir3_compiler_options compiler_options = { + .disable_cache = true, + }; a4xx_backend->compiler = ir3_compiler_create(dev, dev_id, fd_dev_info_raw(dev_id), &compiler_options); a4xx_backend->dev = dev; diff --git a/src/freedreno/computerator/a6xx.cc b/src/freedreno/computerator/a6xx.cc index 6a66ba1bcf9..000c0b7179f 100644 --- a/src/freedreno/computerator/a6xx.cc +++ b/src/freedreno/computerator/a6xx.cc @@ -701,7 +701,9 @@ a6xx_init(struct fd_device *dev, const struct fd_dev_id *dev_id) .read_perfcntrs = a6xx_read_perfcntrs, }; - struct ir3_compiler_options compiler_options = {}; + struct ir3_compiler_options compiler_options = { + .disable_cache = true, + }; a6xx_backend->compiler = ir3_compiler_create(dev, dev_id, fd_dev_info_raw(dev_id), &compiler_options); a6xx_backend->dev = dev;