nir: add a filter cb to lower_io_to_scalar
this is useful for drivers that want to do selective scalarization of io Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24565>
This commit is contained in:
committed by
Marge Bot
parent
550f3dc437
commit
e9a5da2f4b
@@ -1040,7 +1040,7 @@ v3d_nir_lower_gs_late(struct v3d_compile *c)
|
||||
}
|
||||
|
||||
/* Note: GS output scalarizing must happen after nir_lower_clip_gs. */
|
||||
NIR_PASS_V(c->s, nir_lower_io_to_scalar, nir_var_shader_out);
|
||||
NIR_PASS_V(c->s, nir_lower_io_to_scalar, nir_var_shader_out, NULL, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -1050,11 +1050,11 @@ v3d_nir_lower_vs_late(struct v3d_compile *c)
|
||||
NIR_PASS(_, c->s, nir_lower_clip_vs, c->key->ucp_enables,
|
||||
false, false, NULL);
|
||||
NIR_PASS_V(c->s, nir_lower_io_to_scalar,
|
||||
nir_var_shader_out);
|
||||
nir_var_shader_out, NULL, NULL);
|
||||
}
|
||||
|
||||
/* Note: VS output scalarizing must happen after nir_lower_clip_vs. */
|
||||
NIR_PASS_V(c->s, nir_lower_io_to_scalar, nir_var_shader_out);
|
||||
NIR_PASS_V(c->s, nir_lower_io_to_scalar, nir_var_shader_out, NULL, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -1070,7 +1070,7 @@ v3d_nir_lower_fs_late(struct v3d_compile *c)
|
||||
if (c->key->ucp_enables)
|
||||
NIR_PASS(_, c->s, nir_lower_clip_fs, c->key->ucp_enables, true);
|
||||
|
||||
NIR_PASS_V(c->s, nir_lower_io_to_scalar, nir_var_shader_in);
|
||||
NIR_PASS_V(c->s, nir_lower_io_to_scalar, nir_var_shader_in, NULL, NULL);
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
|
||||
Reference in New Issue
Block a user