intel/compiler: use bitset instead of opencoding a 32-bit bitset. (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 3 May 2019 00:17:54 +0000 (10:17 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 14 May 2019 21:10:34 +0000 (07:10 +1000)
commit4efd04ab182e7dad1d77f20ecdd03099330ea9f0
tree6db4e955d7009e5809f484fac6cc48c08b4fd5ad
parent3b2c4331671e04a964d7b47a9876bc46e8a276d6
intel/compiler: use bitset instead of opencoding a 32-bit bitset. (v2)

In the future I want to expand this to 128-bits, for vec16 support, so
lets just put the code in place to use bitset ranges now.

v2: just declare the bitset to be the max of what we should ever see
and change assert to reflect it.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c