mesa/src
Ian Romanick 4d35683d91 nir: Optimize integer division and modulus with 1
The previous power-of-two rules didn't catch idiv (because i965 doesn't
set lower_idiv) and imod cases.  The udiv and umod cases should have
been caught, but I included them for orthogonality.

This fixes silly code observed from compute shaders with local_size_[xy]
= 1.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98299
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2016-10-19 14:25:10 -07:00
..
amd radv: decompress fmask before reading using texture unit 2016-10-19 17:39:47 +10:00
compiler nir: Optimize integer division and modulus with 1 2016-10-19 14:25:10 -07:00
egl egl: bring back the default glapi.so name 2016-10-19 15:09:26 +01:00
gallium radeonsi: eliminate trivial constant VS outputs 2016-10-19 22:21:46 +02:00
gbm loader: remove loader_get_driver_for_fd() driver_type 2016-10-18 17:06:29 +01:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx loader: remove loader_get_driver_for_fd() driver_type 2016-10-18 17:06:29 +01:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv: move to using shared wsi code 2016-10-19 10:15:43 +10:00
loader loader: cleanup copyright section 2016-10-18 17:06:32 +01:00
mapi mapi: fix out-of-tree build dependencies 2016-10-12 17:36:35 +02:00
mesa st/mesa: disable alpha-test, alpha-to-coverage, alpha-to-one for integer FBs 2016-10-19 19:26:30 +02:00
util vulkan: add vk_alloc.h shared allocation inlines. 2016-10-19 09:05:26 +10:00
vulkan/wsi vulkan/wsi: fix out of tree build. 2016-10-19 10:54:42 +10:00
Makefile.am anv: move to using shared wsi code 2016-10-19 10:15:43 +10:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00