summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-01-23 16:57:40 -0800
committerJason Ekstrand <[email protected]>2015-01-26 11:24:58 -0800
commit27c6e3e4ca665c528b94937b1b0a7c10de515d89 (patch)
tree8a0be107cd9b3cf5ff26bc3731bbbbd6b9231288 /src/glsl/nir/nir.h
parent9f5fee880470a7e317aad35d4521cd525714455f (diff)
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 <[email protected]> Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 0ef83a174c2..3fb9d3b5fbe 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -521,8 +521,8 @@ nir_dest_for_reg(nir_register *reg)
return dest;
}
-nir_src nir_src_copy(nir_src src, void *mem_ctx);
-nir_dest nir_dest_copy(nir_dest dest, void *mem_ctx);
+void nir_src_copy(nir_src *dest, const nir_src *src, void *mem_ctx);
+void nir_dest_copy(nir_dest *dest, const nir_dest *src, void *mem_ctx);
typedef struct {
nir_src src;