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 <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37572>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user