mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
nir/gather_info: Record per-primitive outputs without variables.
Previously, this information would have been lost when the shader has no I/O variables. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28489>
This commit is contained in:
parent
185e9b4a75
commit
b085248819
1 changed files with 2 additions and 0 deletions
|
|
@ -594,6 +594,8 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader,
|
|||
} else {
|
||||
shader->info.outputs_written |= slot_mask;
|
||||
shader->info.outputs_written_16bit |= slot_mask_16bit;
|
||||
if (instr->intrinsic == nir_intrinsic_store_per_primitive_output)
|
||||
shader->info.per_primitive_outputs |= slot_mask;
|
||||
if (!nir_src_is_const(*nir_get_io_offset_src(instr))) {
|
||||
shader->info.outputs_accessed_indirectly |= slot_mask;
|
||||
shader->info.outputs_accessed_indirectly_16bit |= slot_mask_16bit;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue