[Mesa-dev] [PATCH] nir: add lowering for idiv/udiv/umod

Eric Anholt eric at anholt.net
Fri Apr 3 11:46:11 PDT 2015


Rob Clark <robdclark at gmail.com> writes:

> From: Rob Clark <robclark at freedesktop.org>
>
> Based on the algo from NV50LegalizeSSA::handleDIV() and handleMOD().
> See also trans_idiv() in freedreno/ir3/ir3_compiler.c (which was an
> adaptation of the nv50 code from Ilia Mirkin).
>
> Also, including a py script that implements the same algo with numpy,
> based on something written by Ilia (and beaten on with a hammer a bit
> by me).
>
> I've tested this on i965 hacked up to insert the idiv lowering pass.

Tested-by: Eric Anholt <eric at anholt.net> (vc4)

I don't think we should commit the python file, though.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150403/5de8382d/attachment.sig>


More information about the mesa-dev mailing list