nir: Make the nir_builder *_imm helpers consistently handle bit size.
authorEric Anholt <eric@anholt.net>
Fri, 21 Aug 2020 18:15:24 +0000 (11:15 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 24 Aug 2020 16:53:09 +0000 (09:53 -0700)
commite78b887f76706ed0667457079474c31ac08374d0
tree61f7fa275cff87171e45248f8209c47cb32640d3
parentf820dde201f82763b5165dfe6516f20e9c80795b
nir: Make the nir_builder *_imm helpers consistently handle bit size.

We always want to demote the y to the bit size of the ssa def, but also
want to sanity check that our input and our masking is big enough.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6378>
src/compiler/nir/nir_builder.h