d3ed00f38a
Similar to util_format_get_component_bits, get the bit offset for a particular channel in a given format. Use this to calculate the shift/mask sets for formats when creating DRI configs, as a prelude to ripping out and replacing the hardcoded table. Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27709>