aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_clone.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-12-02 11:36:42 -0800
committerEric Anholt <[email protected]>2019-04-12 15:59:31 -0700
commit18ed82b084c79bf63666f2da22e5d675fb01aa26 (patch)
treedfb02920970472c7158b2bba889ad05a8ab10c0e /src/compiler/nir/nir_clone.c
parent8a2d91e1248e31426ff656c02d3e598f9e117422 (diff)
nir: Add a pass for selectively lowering variables to scratch space
This commit adds new nir_load/store_scratch opcodes which read and write a virtual scratch space. It's up to the back-end to figure out what to do with it and where to put the actual scratch data. v2: Drop const_index comments (by anholt) Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_clone.c')
-rw-r--r--src/compiler/nir/nir_clone.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_clone.c b/src/compiler/nir/nir_clone.c
index a45a581bd05..1baa60b2fe5 100644
--- a/src/compiler/nir/nir_clone.c
+++ b/src/compiler/nir/nir_clone.c
@@ -735,6 +735,7 @@ nir_shader_clone(void *mem_ctx, const nir_shader *s)
ns->num_uniforms = s->num_uniforms;
ns->num_outputs = s->num_outputs;
ns->num_shared = s->num_shared;
+ ns->scratch_size = s->scratch_size;
ns->constant_data_size = s->constant_data_size;
if (s->constant_data_size > 0) {