Skip to content

nir: Add a helper for testing masks

Konstantin Seurer requested to merge KonstantinSeurer/mesa:nir-bit-masks into main
nir_ine_imm(b, nir_iand_imm(b, x, mask), 0) and
nir_i2b(b, nir_iand_imm(b, x, mask)) are common
patterns which become quite messy when they are
part of a larger expression. Clang-format does
not improve things either and we can end up with
some rather interesting looking code.
(RADV ray tracing pipeline and query lowering)

Merge request reports