mesa/glformats: refactor compressed format support function
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 26 Aug 2015 23:36:11 +0000 (16:36 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Sat, 19 Sep 2015 20:26:55 +0000 (13:26 -0700)
commit29835fe19e0ca73a8017427498056ff7eb713cdd
treef0be8011e1c426382cea19c56cdb9b5081dda2fc
parent31a5135cd793951191c4a2fb86a50253a9931454
mesa/glformats: refactor compressed format support function

Instead of case statements, use _mesa_get_format_layout() to
determine if a GL format is part of a family of compressed formats.

v2. restrict LATC formats to API_OPENGL_COMPAT (Ilia).
    rename the variable mFormat to m_format.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/main/glformats.c