On 22 June 2016 at 11:06, Ilia Mirkin <imir...@alum.mit.edu> wrote:
> Is that correct in the case where I have something like
>
> dvec4 foo = ...
> bool x = (foo == dvec4(0, 1, 2, 3));
>
> ?

Yes, since immediates are repacked, and relooked up.

So if you do dvec4(1, 2, 2, 1) you only end up using two immediate
locations, and the should have a direct lookup.
>
> Can you elaborate a little bit more as to why this is right? Shouldn't
> this be based on the swizzle of the src[j] argument? [Note, I haven't
> carefully read all the surrounding code.]

No, again immediates are already packed at this stage, we are just
looking up the value in the array.

Dave.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to