On Friday, July 15, 2016 3:47:40 PM PDT Jason Ekstrand wrote: > Signed-off-by: Jason Ekstrand <ja...@jlekstrand.net> > Cc: "12.0" <mesa-sta...@lists.freedesktop.org> > Cc: Connor Abbott <cwabbo...@gmail.com> > --- > 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 <kenn...@whitecape.org> (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 mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev