mesa/src
Jason Ekstrand 7cde4dbcd7 util: Generalize fast integer division to be variable bit-width
There's nothing inherently fixed-width in the code.  All that's required
to generalize it is to make everything internally 64-bit and pass
UINT_BITS in as a parameter to util_compute_fast_[us]div_info.  With
that, it can now handle 8, 16, 32, and 64-bit integer division by a
constant.

We also add support for division by 1 and by other powers of 2.  This is
useful if you want to divide by a uniform value in a shader where you
have the opportunity to adjust the uniform on the CPU before passing it
in.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2018-10-10 13:13:12 -05:00
..
amd radv: add missing meson c++ visibility arguments 2018-10-09 14:22:24 +01:00
broadcom android: broadcom/cle: export the broadcom top level path headers 2018-09-15 09:14:46 +02:00
compiler glsl: ignore trailing whitespace when define redefined 2018-10-10 15:08:32 +11:00
egl egl/x11: remove eglSwap* surface check 2018-10-03 13:38:06 +01:00
gallium svga: change svga_destroy_shader_variant() to return void 2018-10-09 11:17:14 -06:00
gbm gbm: Add GBM_FORMAT_ARGB1555 support 2018-10-09 10:32:51 +02:00
getopt
glx apple/glx/log: added missing va_end() after va_copy() 2018-09-06 17:33:27 +01:00
gtest autotools: include meson build files in tarball 2018-01-19 16:30:51 -08:00
hgl meson: Add Haiku platform support v4 2018-02-16 16:56:34 -06:00
intel intel/compiler: Don't handle fsign.sat 2018-10-09 13:56:42 -07:00
loader loader/dri3: Don't wait for fence of old buffer when re-allocating it 2018-09-12 16:55:09 +02:00
mapi meson: only build clapi tests when OpenGL is being built 2018-10-09 08:55:48 -07:00
mesa i965: fallback RGBX to RGBA in glEGLImageTargetRenderbufferStorageOES 2018-10-08 08:03:45 +03:00
util util: Generalize fast integer division to be variable bit-width 2018-10-10 13:13:12 -05:00
vulkan vulkan: Update the XML and headers to 1.1.86 2018-10-01 11:43:20 -05:00
Makefile.am Revert "configure: allow building with python3" 2018-08-24 11:14:15 +01:00
meson.build meson: Only build gallium state tracker tests with shared_glapi 2018-10-09 08:55:56 -07:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00