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 <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32353>
This commit is contained in:
Boris Brezillon 2024-11-26 15:13:22 +01:00 committed by Marge Bot
parent 16dd990bac
commit b11e9168d8

View file

@ -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;
}