nir: Fix a bunch of ralloc parenting errors
As of a10d4937, we would really like things associated with an instruction to be allocated out of that instruction and not out of the shader. In particular, you should be passing the instruction that will ultimately be holding the source into nir_src_copy rather than an arbitrary memory context. We also change the prototypes of nir_dest_copy and nir_alu_src/dest_copy to explicitly take an instruction so we catch this earlier in the future. Cc: "11.0" <mesa-stable@lists.freedesktop.org> Reviewed-by:Thomas Helland <thomashelland90@gmail.com>
Showing
- src/glsl/nir/nir.c 11 additions, 9 deletionssrc/glsl/nir/nir.c
- src/glsl/nir/nir.h 7 additions, 6 deletionssrc/glsl/nir/nir.h
- src/glsl/nir/nir_from_ssa.c 1 addition, 1 deletionsrc/glsl/nir/nir_from_ssa.c
- src/glsl/nir/nir_lower_alu_to_scalar.c 3 additions, 3 deletionssrc/glsl/nir/nir_lower_alu_to_scalar.c
- src/glsl/nir/nir_lower_atomics.c 1 addition, 1 deletionsrc/glsl/nir/nir_lower_atomics.c
- src/glsl/nir/nir_lower_io.c 1 addition, 1 deletionsrc/glsl/nir/nir_lower_io.c
- src/glsl/nir/nir_lower_locals_to_regs.c 3 additions, 4 deletionssrc/glsl/nir/nir_lower_locals_to_regs.c
- src/glsl/nir/nir_lower_vec_to_movs.c 2 additions, 2 deletionssrc/glsl/nir/nir_lower_vec_to_movs.c
- src/glsl/nir/nir_opt_peephole_ffma.c 1 addition, 2 deletionssrc/glsl/nir/nir_opt_peephole_ffma.c
- src/glsl/nir/nir_opt_peephole_select.c 2 additions, 2 deletionssrc/glsl/nir/nir_opt_peephole_select.c
Loading
Please register or sign in to comment