panfrost: Debitfieldize mali_uniform_buffer_meta
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sun, 16 Feb 2020 22:01:02 +0000 (17:01 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Feb 2020 14:44:08 +0000 (14:44 +0000)
commit7d3c48f131ec84aa759a6290a20e2b0c02ad8834
tree8a600f675a61b7e99b7f9fd38aed7abfba8e7921
parent027944c7c8ccbff940484b1ed7cc5d75b9593640
panfrost: Debitfieldize mali_uniform_buffer_meta

It fits snugly in a u64, just give a macro for direct computation rather
than fudging around with bitfields. Not sure if this actually matters
with well-optimized compilers but it makes the code subjectively cleaner
so it's worth it for that if nothing else.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3838>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3838>
src/gallium/drivers/panfrost/pan_context.c
src/panfrost/include/panfrost-job.h
src/panfrost/pandecode/decode.c