From b9eff53daab6c7da7980d8a631dc4c682a8404b2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 7 Aug 2024 13:06:06 -0400 Subject: [PATCH] nir: add image_block_size_per_thread_agx info This is like shared_size but for spatial data instead, for compute shaders that use the tilebuffer. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Faith Ekstrand Part-of: --- src/compiler/shader_info.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index 6d4fdae0807..62206d8616d 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -458,6 +458,15 @@ typedef struct shader_info { */ bool has_cooperative_matrix:1; + /** + * Number of bytes of shared imageblock memory per thread. Currently, + * this requires that the workgroup size is 32x32x1 and that + * shared_size = 0. These requirements could be lifted in the future. + * However, there is no current OpenGL/Vulkan API support for + * imageblocks. This is only used internally to accelerate blit/copy. + */ + uint8_t image_block_size_per_thread_agx; + /** * pointer size is: * AddressingModelLogical: 0 (default)