On Sunday, November 27, 2016 12:42:49 AM PST Kenneth Graunke wrote:
> On Tuesday, November 22, 2016 11:59:43 AM PST Matt Turner wrote:
> > desc will always be non-NULL, because brw_validate_instructions() does
> > not attempt to validate any instructions that fail the
> > is_unsupported_inst() check.
> > ---
> > src/mesa/drivers/dri/i965/brw_eu_validate.c | 4 +---
> > 1 file changed, 1 insertion(+), 3 deletions(-)
> >
> > diff --git a/src/mesa/drivers/dri/i965/brw_eu_validate.c
> > b/src/mesa/drivers/dri/i965/brw_eu_validate.c
> > index d3c15da..efb1f1c 100644
> > --- a/src/mesa/drivers/dri/i965/brw_eu_validate.c
> > +++ b/src/mesa/drivers/dri/i965/brw_eu_validate.c
> > @@ -103,10 +103,8 @@ num_sources_from_inst(const struct gen_device_info
> > *devinfo,
> > */
> > return 0;
> > }
> > - } else if (desc) {
> > - return desc->nsrc;
> > } else {
> > - return 0;
> > + return desc->nsrc;
> > }
> >
> > switch (math_function) {
> >
>
> It looks like this becomes true eventually, but it isn't at this point
> in your series.
>
> num_sources_from_inst() appears to be called before is_unsupported_inst().
> Oh, you just need to swap the order of patches 9 and 10. With that fixed, patches 1-13 are: Reviewed-by: Kenneth Graunke <[email protected]>
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
