util/u_format: add _is_alpha()
authorRob Clark <robclark@freedesktop.org>
Fri, 12 Sep 2014 12:42:03 +0000 (08:42 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 12 Sep 2014 20:23:52 +0000 (16:23 -0400)
commit3e0a82b52ebbf306adb0dd0f0990f7a8e8b271c5
tree2ae0041a314c48a223af72d60ee0b2266ee59f51
parent480fe244dd41a034111963440a9f51999cfc9035
util/u_format: add _is_alpha()

Because of render-to-alpha (000x) shenanigans, freedreno needs to do
some special handling when rendering to alpha-only formats.  And I
noticed that while we had _is_luminance(), _is_intensity(), etc, an
_is_alpha() helper was missing.  So fix that.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/util/u_format.c
src/gallium/auxiliary/util/u_format.h