panfrost: Add message preload to pan_shader_info

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10967>
This commit is contained in:
Alyssa Rosenzweig 2021-03-05 20:59:39 +00:00 committed by Marge Bot
parent 821b80d68a
commit 5f8778a583
2 changed files with 6 additions and 0 deletions

View 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:

View 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 {