u_format: add inline helper to find first non void channel
authorDave Airlie <airlied@redhat.com>
Sat, 8 Oct 2011 16:41:33 +0000 (17:41 +0100)
committerDave Airlie <airlied@redhat.com>
Sat, 8 Oct 2011 16:44:58 +0000 (17:44 +0100)
commit61285c6cfa9ce6086d62fa08bc9e3813f0b30d3d
tree7cbc2984288ac45a20e3a1ccfa6c3a70e43399aa
parentb861479f83ea140bfe24357d09f18a6d026d97b5
u_format: add inline helper to find first non void channel

This is used in a few places in drivers as well, also the integer support
can use it as well.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/util/u_format.c
src/gallium/auxiliary/util/u_format.h