gallium: Add util_format_is_unorm8 check
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 5 Jul 2019 15:40:22 +0000 (08:40 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 9 Jul 2019 21:17:47 +0000 (21:17 +0000)
commit6074eae753e8735e7c4477e0b0dc470a0681d874
treee7311472188297f639e0b799378ba37c200286aa
parent15000c79da7c083a9306d53dae04afd6584e06e0
gallium: Add util_format_is_unorm8 check

Useful for formats that would work with the same driver code path as
RGBA8 UNORM but that don't meet the util_format_is_rgba8_variant
criteria due to a smaller channel count.

v2: Use simpler logic (suggested by Iago).

v3: Fix spelling erorr. boolean->bool (thank you airlied).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/util/u_format.h