On 10/12, Jason Ekstrand wrote:
For some reason, the any/all predicates don't work properly with SIMD32.
In particular, it appears that a SEL with a QtrCtrl of 2H doesn't read
the correct subset of the flag register and you end up getting garbage
in the second half.  Work around this by using a pair of 1-wide MOVs and
scattering the result.  This fixes the any/all instructions for SIMD32.

Huh. I can see a lot of potential for hardware misbehavior here...

Making things 1-wide makes a lot of sense, regardless of the bug you're
seeing. I'm in favor of that change.

I picked a SEL instead of a predicated MOV instruction since the latter
is considered by our optimizer to be a partial write, and as such isn't
subject to CSE, etc. The difference is probably trivial, but I'd rather
just commit a patch to change things to be 1-wide, not s/SEL/MOV/, and
drop the added comments from the code.

Assuming that still fixes the bug you see, that would be

Reviewed-by: Matt Turner <matts...@gmail.com>

Attachment: signature.asc
Description: Digital signature

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

Reply via email to