mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
nir: Remove nir_ssa_for_src
It is now unused and has no real use cases now that nir_register is gone. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25247>
This commit is contained in:
parent
55333fce77
commit
b318b3d520
2 changed files with 1 additions and 18 deletions
|
|
@ -337,21 +337,7 @@ nir_vec_scalars(nir_builder *build, nir_scalar *comp, unsigned num_components)
|
|||
}
|
||||
|
||||
/**
|
||||
* Turns a nir_src into a nir_def * so it can be passed to
|
||||
* nir_build_alu()-based builder calls.
|
||||
*
|
||||
* See nir_ssa_for_alu_src() for alu instructions.
|
||||
*/
|
||||
nir_def *
|
||||
nir_ssa_for_src(nir_builder *build, nir_src src, ASSERTED int num_components)
|
||||
{
|
||||
assert(src.ssa->num_components == num_components && "now required");
|
||||
return src.ssa;
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to nir_ssa_for_src(), but for alu srcs, respecting the
|
||||
* nir_alu_src's swizzle.
|
||||
* Get nir_def for an alu src, respecting the nir_alu_src's swizzle.
|
||||
*/
|
||||
nir_def *
|
||||
nir_ssa_for_alu_src(nir_builder *build, nir_alu_instr *instr, unsigned srcn)
|
||||
|
|
|
|||
|
|
@ -1348,9 +1348,6 @@ nir_resize_vector(nir_builder *b, nir_def *src, unsigned num_components)
|
|||
return nir_trim_vector(b, src, num_components);
|
||||
}
|
||||
|
||||
nir_def *
|
||||
nir_ssa_for_src(nir_builder *build, nir_src src, int num_components);
|
||||
|
||||
nir_def *
|
||||
nir_ssa_for_alu_src(nir_builder *build, nir_alu_instr *instr, unsigned srcn);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue