Replace uses of _mesa_bitcount with util_bitcount
authorDylan Baker <dylan@pnwbakers.com>
Tue, 21 Aug 2018 16:46:46 +0000 (09:46 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 7 Sep 2018 17:21:26 +0000 (10:21 -0700)
commit8396043f304bb2a752130230055605c5c966e89f
treeee2e8a5494b88bff3b5e67ece8ffdba70d12c087
parent80825abb5d1a7491035880253ffd531c55acae6b
Replace uses of _mesa_bitcount with util_bitcount

and _mesa_bitcount_64 with util_bitcount_64. This fixes a build problem
in nir for platforms that don't have popcount or popcountll, such as
32bit msvc.

v2: - Fix additional uses of _mesa_bitcount added after this was
      originally written

Acked-by: Eric Engestrom <eric.engestrom@intel.com> (v1)
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
36 files changed:
src/compiler/glsl/ir_constant_expression.cpp
src/compiler/glsl/ir_expression_operation.py
src/compiler/glsl/link_varyings.cpp
src/compiler/glsl/linker.cpp
src/compiler/nir/nir.c
src/compiler/nir/nir_split_vars.c
src/gallium/state_trackers/glx/xlib/glx_api.c
src/gallium/state_trackers/glx/xlib/xm_api.c
src/gallium/targets/libgl-xlib/Makefile.am
src/intel/blorp/blorp_blit.c
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_nir.c
src/intel/compiler/brw_vec4.cpp
src/intel/compiler/brw_vec4_visitor.cpp
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_nir_lower_multiview.c
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c
src/intel/vulkan/genX_query.c
src/mesa/drivers/common/meta.c
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_performance_query.c
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/x11/Makefile.am
src/mesa/drivers/x11/fakeglx.c
src/mesa/drivers/x11/meson.build
src/mesa/drivers/x11/xm_api.c
src/mesa/main/arrayobj.c
src/mesa/main/buffers.c
src/mesa/main/imports.c
src/mesa/main/imports.h
src/mesa/program/program_parse.y
src/mesa/state_tracker/st_glsl_to_nir.cpp