mesa/formatquery: Added a func to check <internalformat> supported
authorAntia Puentes <apuentes@igalia.com>
Tue, 22 Dec 2015 14:07:57 +0000 (15:07 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:06 +0000 (15:14 +0100)
commit4722abc6300249e5afeff54e1286d2261c26bd28
tree10d39091f329e822a2694ee2beacdfd14c8866a3
parent5f6e3a03704c67dd5a271a4e43645355c5199cc7
mesa/formatquery: Added a func to check <internalformat> supported

From the ARB_internalformat_query2 specification:

  "The INTERNALFORMAT_SUPPORTED <pname> can be used to determine if
   the internal format is supported, and the  other <pnames> are defined
   in terms of whether or not the format is supported."

v2: Consider also FBO base formats when checking if the internalformat is
    supported.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/formatquery.c