mesa/src
Rob Clark f2ecc95e44 nir: add lowering for idiv/udiv/umod
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).

A python/numpy script which implements the same algorithm (and is
possibly useful for debugging or analysis) can be found here:

  http://people.freedesktop.org/~robclark/div-lowering.py

I've tested this on i965 hacked up to insert the idiv lowering pass,
and on freedreno with NIR frontend.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Tested-by: Eric Anholt <eric@anholt.net> (vc4)
2015-04-05 09:20:35 -04:00
..
egl egl: add initial EGL_MESA_image_dma_buf_export v2.4 2015-04-01 14:10:04 +10:00
gallium nv50: allocate more offset space for occlusion queries 2015-04-04 11:30:03 -04:00
gbm gbm: remove gbm_gallium_drm from the loader 2015-03-24 20:49:31 +00:00
getopt
glsl nir: add lowering for idiv/udiv/umod 2015-04-05 09:20:35 -04:00
glx glx: Handle out-of-sequence swap completion events correctly. (v2) 2015-03-17 23:54:02 +00:00
gtest gtest: Add headers to distribution. 2014-12-12 12:11:46 -08:00
hgl hgl: traverse add-on entries 2014-12-10 14:01:01 +00:00
loader scons: Don't build loader on Windows. 2015-03-25 10:42:35 +00:00
mapi main: Added entry points for NamedRenderbufferStorage/Multisample 2015-03-25 10:05:45 +02:00
mesa mesa: Remove unused variables left over from 107ae27e57. 2015-04-05 09:40:47 +02:00
util ralloc: Implement a new ralloc_adopt() API. 2015-04-02 14:19:41 -07:00
Makefile.am automake: add missing egl files to the tarball 2015-03-25 21:00:02 +00:00
SConscript scons: Don't build loader on Windows. 2015-03-25 10:42:35 +00:00