mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
radv: fix task payload lowering when shared_memory_explicit_layout=true
If shared_memory_explicit_layout=true, we would have skipped lowering task payload variables to explicit types. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19597>
This commit is contained in:
parent
e4060752e2
commit
a89755d179
1 changed files with 4 additions and 2 deletions
|
|
@ -1077,9 +1077,11 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_pipeline_
|
|||
nir->info.stage == MESA_SHADER_MESH)
|
||||
var_modes |= nir_var_mem_task_payload;
|
||||
|
||||
if (!nir->info.shared_memory_explicit_layout) {
|
||||
if (!nir->info.shared_memory_explicit_layout)
|
||||
NIR_PASS(_, nir, nir_lower_vars_to_explicit_types, var_modes, shared_var_info);
|
||||
}
|
||||
else if (var_modes & ~nir_var_mem_shared)
|
||||
NIR_PASS(_, nir, nir_lower_vars_to_explicit_types, var_modes & ~nir_var_mem_shared,
|
||||
shared_var_info);
|
||||
NIR_PASS(_, nir, nir_lower_explicit_io, var_modes, nir_address_format_32bit_offset);
|
||||
|
||||
if (nir->info.zero_initialize_shared_memory && nir->info.shared_size > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue