[Mesa-dev] [PATCH] nir/clone: Copy bit size when cloning registers

Jason Ekstrand jason at jlekstrand.net
Mon Apr 11 23:57:26 UTC 2016


Reported-by: Mark Janes <mark.a.janes at intel.com>
Cc: Eduardo Lima Mitev <elima at igalia.com>
---
 src/compiler/nir/nir_clone.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/nir/nir_clone.c b/src/compiler/nir/nir_clone.c
index e889f19..e231387 100644
--- a/src/compiler/nir/nir_clone.c
+++ b/src/compiler/nir/nir_clone.c
@@ -179,6 +179,7 @@ clone_register(clone_state *state, const nir_register *reg)
    add_remap(state, nreg, reg);
 
    nreg->num_components = reg->num_components;
+   nreg->bit_size = reg->bit_size;
    nreg->num_array_elems = reg->num_array_elems;
    nreg->index = reg->index;
    nreg->name = ralloc_strdup(nreg, reg->name);
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list