[Mesa-dev] [PATCH 2/2] spirv: handle undefined components for OpVectorShuffle
Juan A. Suarez Romero
jasuarez at igalia.com
Fri Jan 27 09:57:15 UTC 2017
On Fri, 2017-01-27 at 09:46 +0000, Lionel Landwerlin wrote:
> > But what the test does is calling OpSpecConstantOp[2], which is the
> > operation we are patching here.
> >
> > And according to the spec, "all Operands must be the <id>s of other
> > constant instructions", being constant instructions those starting with
> > OpConstant or OpSpec. In this regard, OpUndef is not a constant.
>
> I noticed this indeed. Given that test were specifically written to test
> this, I thought OpVectorShuffle had priority on this rule.
>
I think that when calling OpVectorShuffle directly, OpUndef can be
used, but when using through OpSpecConstantsOp, the operands are
restricted to constants.
> I just filed a bug against the spec to get clarification on this.
I was to send a fix to the test, to remove the OpUndef usage. But I
think I'll wait until this is clarified. Thanks!
J.A.
More information about the mesa-dev
mailing list