mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 11:00:37 +02:00
radv: Set pending_vmem on dynamic VS input args.
These are loaded from VMEM and need a waitcnt before use. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21696>
This commit is contained in:
parent
1a7b5979df
commit
1583bea9da
1 changed files with 3 additions and 1 deletions
|
|
@ -364,8 +364,10 @@ declare_vs_input_vgprs(enum amd_gfx_level gfx_level, const struct radv_shader_in
|
|||
if (info->vs.dynamic_inputs) {
|
||||
assert(info->vs.use_per_attribute_vb_descs);
|
||||
unsigned num_attributes = util_last_bit(info->vs.input_slot_usage_mask);
|
||||
for (unsigned i = 0; i < num_attributes; i++)
|
||||
for (unsigned i = 0; i < num_attributes; i++) {
|
||||
ac_add_arg(&args->ac, AC_ARG_VGPR, 4, AC_ARG_INT, &args->vs_inputs[i]);
|
||||
args->ac.args[args->vs_inputs[i].arg_index].pending_vmem = true;
|
||||
}
|
||||
/* Ensure the main shader doesn't use less vgprs than the prolog. The prolog requires one
|
||||
* VGPR more than the number of shader arguments in the case of non-trivial divisors on GFX8.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue