Files
mesa/src/util
Timur Kristóf 6cde424945 util: Add util_widen_mask function.
Widens the given bit mask by a multiplier, meaning that it will
replicate each bit by that amount.
For example: 0b101 widened by 2 will become: 0b110011

This is typically used in shader I/O to transform a 64-bit
writemask to a 32-bit writemask.

Moving this function here because it is used in multiple places.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14005>
2021-12-03 18:29:13 +00:00
..
2021-11-16 14:12:03 +00:00
2021-11-17 13:41:47 +00:00
2021-12-03 18:29:13 +00:00
2021-09-21 20:25:31 +00:00
2020-09-25 20:09:08 +00:00
2021-11-17 13:41:47 +00:00
2021-11-17 13:41:47 +00:00
2021-08-14 21:44:32 +00:00
2020-08-31 09:14:57 +00:00
2021-11-16 14:12:03 +00:00
2020-10-27 15:33:40 -07:00
2020-12-02 10:12:27 -08:00
2020-12-01 07:11:44 +00:00
2021-10-20 21:40:31 -07:00
2021-10-05 23:46:14 +00:00
2021-10-05 23:46:14 +00:00
2020-11-11 06:08:15 +10:00
2021-02-22 00:30:46 +00:00
2021-05-10 15:34:07 +00:00
2021-05-10 15:34:07 +00:00
2021-02-19 11:05:38 +00:00
2020-05-13 23:36:44 +00:00
2020-05-13 23:36:44 +00:00
2021-08-14 21:44:32 +00:00
2020-12-01 10:04:41 +01:00