panfrost: Add message preload to pan_shader_info
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 5 Mar 2021 20:59:39 +0000 (20:59 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 May 2021 13:10:37 +0000 (13:10 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10967>

src/panfrost/lib/pan_shader.h
src/panfrost/util/pan_ir.h

index c31c35d..f5889ee 100644 (file)
@@ -147,6 +147,9 @@ pan_shader_prepare_bifrost_rsd(const struct panfrost_device *dev,
                         info->fs.reads_sample_mask_in |
                         info->fs.reads_helper_invocation |
                         info->fs.sample_shading;
+
+                rsd->message_preload_1 = info->bifrost.messages[0];
+                rsd->message_preload_2 = info->bifrost.messages[1];
                 break;
 
         case MESA_SHADER_COMPUTE:
index f8fa8c0..910baca 100644 (file)
@@ -151,6 +151,9 @@ struct bifrost_shader_info {
         struct bifrost_shader_blend_info blend[8];
         nir_alu_type blend_src1_type;
         bool wait_6, wait_7;
+
+        /* Packed, preloaded message descriptors */
+        uint16_t messages[2];
 };
 
 struct midgard_shader_info {