mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
panfrost: Set secondary_* fields for IDVS
Easy now that we've split everything out nicely. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14154>
This commit is contained in:
parent
29f63c6283
commit
4d8d987f1a
1 changed files with 13 additions and 0 deletions
|
|
@ -190,6 +190,19 @@ pan_shader_prepare_bifrost_rsd(const struct pan_shader_info *info,
|
|||
|
||||
rsd->message_preload_1 = info->bifrost.messages[0];
|
||||
rsd->message_preload_2 = info->bifrost.messages[1];
|
||||
#endif
|
||||
} else if (info->stage == MESA_SHADER_VERTEX && info->vs.secondary_enable) {
|
||||
rsd->secondary_preload.uniform_count = fau_count;
|
||||
|
||||
pan_make_preload(info->stage, info->vs.secondary_preload,
|
||||
&rsd->secondary_preload);
|
||||
|
||||
rsd->secondary_shader = rsd->shader.shader +
|
||||
info->vs.secondary_offset;
|
||||
|
||||
#if PAN_ARCH >= 7
|
||||
rsd->properties.secondary_shader_register_allocation =
|
||||
pan_register_allocation(info->vs.secondary_work_reg_count);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue