mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-30 03:08:12 +02:00
nir: handle more opcodes in nir_lower_io_to_scalar
It just works. Reviewed-by: Qiang Yu <yuq825@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21861>
This commit is contained in:
parent
10a362f582
commit
988545002e
1 changed files with 4 additions and 2 deletions
|
|
@ -231,13 +231,15 @@ nir_lower_io_to_scalar_instr(nir_builder *b, nir_instr *instr, void *data)
|
|||
return false;
|
||||
|
||||
if ((intr->intrinsic == nir_intrinsic_load_input ||
|
||||
intr->intrinsic == nir_intrinsic_load_per_vertex_input) &&
|
||||
intr->intrinsic == nir_intrinsic_load_per_vertex_input ||
|
||||
intr->intrinsic == nir_intrinsic_load_interpolated_input) &&
|
||||
(mask & nir_var_shader_in)) {
|
||||
lower_load_input_to_scalar(b, intr);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (intr->intrinsic == nir_intrinsic_load_per_vertex_output &&
|
||||
if ((intr->intrinsic == nir_intrinsic_load_output ||
|
||||
intr->intrinsic == nir_intrinsic_load_per_vertex_output) &&
|
||||
(mask & nir_var_shader_out)) {
|
||||
lower_load_input_to_scalar(b, intr);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue