nir: Use pointers for nir_src_copy and nir_dest_copy
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 24 Jan 2015 00:57:40 +0000 (16:57 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 26 Jan 2015 19:24:58 +0000 (11:24 -0800)
commit27c6e3e4ca665c528b94937b1b0a7c10de515d89
tree8a0be107cd9b3cf5ff26bc3731bbbbd6b9231288
parent9f5fee880470a7e317aad35d4521cd525714455f
nir: Use pointers for nir_src_copy and nir_dest_copy

This avoids the overhead of copying structures and better matches the newly
added nir_alu_src_copy and nir_alu_dest_copy.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_from_ssa.c
src/glsl/nir/nir_lower_atomics.c
src/glsl/nir/nir_lower_io.c
src/glsl/nir/nir_lower_locals_to_regs.c
src/glsl/nir/nir_lower_samplers.cpp
src/glsl/nir/nir_lower_system_values.c
src/glsl/nir/nir_opt_peephole_select.c
src/glsl/nir/nir_search.c