agx: add main_size info

so we can fastlink when there are preambles

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
Alyssa Rosenzweig 2024-03-19 13:10:43 -04:00 committed by Marge Bot
parent 0298c5d905
commit 66862fa160

View file

@ -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.
*/