[Mesa-stable] [Mesa-dev] [PATCH] glsl: handle error case with ast_post_inc, ast_post_dec
Dylan Baker
dylan at pnwbakers.com
Fri Aug 10 15:38:28 UTC 2018
Quoting Andres Gomez (2018-08-10 05:27:32)
> Just Ccing Dylan ...
>
> On Fri, 2018-08-10 at 08:10 +0300, Tapani Pälli wrote:
> > On 08/09/2018 03:24 PM, Andres Gomez wrote:
> > > Tapani, should we also include this in the stable queues ?
> >
> > I was not sure if this is 'critical enough' for stable, but yes I'm OK
> > including it there!
> >
> > Thanks;
> >
> > > On Tue, 2018-08-07 at 08:20 +0300, Tapani Pälli wrote:
> > > > Return ir_rvalue::error_value with ast_post_inc, ast_post_dec if
> > > > parser error was emitted previously. This way process_array_size
> > > > won't see bogus IR generated like with commit 9c676a64273.
> > > >
> > > > Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98699
> > > > ---
> > > > src/compiler/glsl/ast_to_hir.cpp | 5 +++++
> > > > 1 file changed, 5 insertions(+)
> > > >
> > > > diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
> > > > index 74160ec142b..5d3f10b6823 100644
> > > > --- a/src/compiler/glsl/ast_to_hir.cpp
> > > > +++ b/src/compiler/glsl/ast_to_hir.cpp
> > > > @@ -1928,6 +1928,11 @@ ast_expression::do_hir(exec_list *instructions,
> > > >
> > > > error_emitted = op[0]->type->is_error() || op[1]->type->is_error();
> > > >
> > > > + if (error_emitted) {
> > > > + result = ir_rvalue::error_value(ctx);
> > > > + break;
> > > > + }
> > > > +
> > > > type = arithmetic_result_type(op[0], op[1], false, state, & loc);
> > > >
> > > > ir_rvalue *temp_rhs;
> >
> > _______________________________________________
> > mesa-stable mailing list
> > mesa-stable at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-stable
> --
> Br,
>
> Andres
Added to staging/18.1. Thanks for CCing me.
Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-stable/attachments/20180810/aefeb5d0/attachment.sig>
More information about the mesa-stable
mailing list