On Friday, July 15, 2016 3:47:40 PM PDT Jason Ekstrand wrote: > Signed-off-by: Jason Ekstrand <[email protected]> > Cc: "12.0" <[email protected]> > Cc: Connor Abbott <[email protected]> > --- > src/compiler/nir/nir_inline_functions.c | 41 > +++++++++++++++++++++++++++++++-- > 1 file changed, 39 insertions(+), 2 deletions(-) > > diff --git a/src/compiler/nir/nir_inline_functions.c > b/src/compiler/nir/nir_inline_functions.c > index c36748d..5e7382a 100644 > --- a/src/compiler/nir/nir_inline_functions.c > +++ b/src/compiler/nir/nir_inline_functions.c > @@ -25,6 +25,19 @@ > #include "nir_builder.h" > #include "nir_control_flow.h" > > +static bool > +deref_apply_constant_initializer(nir_deref_var *deref, void *state) > +{ > + struct nir_builder *b = state; > + > + nir_load_const_instr *initializer = > + nir_deref_get_const_initializer_load(b->shader, deref);
With the load_const properly added to the instruction list, this is: Reviewed-by: Kenneth Graunke <[email protected]> (Jason actually found this bug and already fixed it locally...I didn't catch it.)
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
