Skip to content

util: Introduce BITFIELD16_MASK

小田喜陽彦 requested to merge akihiko.odaki/mesa:bitfield into main

BITFIELD_MASK, which emits 32-bit integers, had been used for 16-bit integers before this change. That results in rounding the argument with 32 and clang version 12.0.0 complains the masks are too large for 16-bit integers. Add proper BITFIELD16_MASK to solve these problems.

Signed-off-by: Akihiko Odaki akihiko.odaki@gmail.com

cc: @phomes @idr

Merge request reports