intel/nir: Use nir_extract_bits in lower_mem_access_bit_sizes
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 6 Nov 2019 18:36:28 +0000 (12:36 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 11 Nov 2019 17:17:02 +0000 (17:17 +0000)
commit83f04d80b0eda4a0eedebe183b3da09cf844c05c
tree133482852d4b711fc2d5defa4f3e0b9a6c664fa7
parentb8d45d93073a8101f67c0d702e29208aae9015ea
intel/nir: Use nir_extract_bits in lower_mem_access_bit_sizes

The new helper solves most of the annoying problems with data wrangling
in brw_nir_lower_mem_access_bit_sizes.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c