util/format: add some ZS helpers for vallium
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 06:44:09 +0000 (16:44 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 17 Aug 2020 04:30:50 +0000 (14:30 +1000)
commit5a9eba4acd0b202967d312851a3cc143275fb653
tree26e56d9fcdbe8046385a2a305a70c57afebcbe31
parent3abf548270bbe92aea17b976397813ba763f4ea0
util/format: add some ZS helpers for vallium

The vallium layer has a requirement to insert and extra the 24-bit
unorm value as a unorm value (not as a float etc). Add helpers
to facilitate that.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6082>
src/util/format/u_format_zs.c
src/util/format/u_format_zs.h