util/format: add helper to check if a format is scaled.
authorDave Airlie <airlied@redhat.com>
Mon, 8 Feb 2021 04:58:50 +0000 (14:58 +1000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Feb 2021 05:31:11 +0000 (05:31 +0000)
commit8258726d904061fd82b3503eab312ff81117c0d2
tree41ee1e2b60dbe935d358d97977bf4cdec9226fd1
parent2b6d59bd8ca15ec885a04423366bbc7f198e5e92
util/format: add helper to check if a format is scaled.

lavapipe/llvmpipe need this to rule out scaled formats for non-vertex
format usage. Note NONE is defined as scaled in u_format, but for
the purposes of this helper I don't want it to be considered scaled.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8907>
src/util/format/u_format.c
src/util/format/u_format.h