From 66862fa160409f712d76233a0fb618a83dca2b89 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 19 Mar 2024 13:10:43 -0400 Subject: [PATCH] agx: add main_size info so we can fastlink when there are preambles Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asahi/compiler/agx_compile.h b/src/asahi/compiler/agx_compile.h index c2d558512bf..e5f4326eb93 100644 --- a/src/asahi/compiler/agx_compile.h +++ b/src/asahi/compiler/agx_compile.h @@ -73,6 +73,9 @@ struct agx_shader_info { /* Scratch memory allocation in bytes for main/preamble respectively */ unsigned scratch_size, preamble_scratch_size; + /* Size in bytes of the main sahder */ + unsigned main_size; + /* Does the shader have a preamble? If so, it is at offset preamble_offset. * The main shader is at offset main_offset. The preamble is executed first. */