From b11e9168d868048fe3afdccc0038eb0c89914421 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Tue, 26 Nov 2024 15:13:22 +0100 Subject: [PATCH] panfrost: Use the handler size returned by cs_exception_handler_def() Use the handler size returned by cs_exception_handler_def() instead of extracting it from the cs_builder state. Signed-off-by: Boris Brezillon Reviewed-by: Lars-Ivar Hesselberg Simonsen Part-of: --- src/gallium/drivers/panfrost/pan_csf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_csf.c b/src/gallium/drivers/panfrost/pan_csf.c index 632dfe1db7e..c941658517d 100644 --- a/src/gallium/drivers/panfrost/pan_csf.c +++ b/src/gallium/drivers/panfrost/pan_csf.c @@ -187,7 +187,7 @@ csf_oom_handler_init(struct panfrost_context *ctx) assert(cs_is_valid(&b)); cs_finish(&b); ctx->csf.tiler_oom_handler.cs_bo = cs_bo; - ctx->csf.tiler_oom_handler.length = b.root_chunk.size * 8; + ctx->csf.tiler_oom_handler.length = handler.length * sizeof(uint64_t); ctx->csf.tiler_oom_handler.save_bo = reg_save_bo; }