mesa/formatquery: Added texture gather/shadow related queries
authorAntia Puentes <apuentes@igalia.com>
Mon, 21 Dec 2015 14:57:25 +0000 (15:57 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:07 +0000 (15:14 +0100)
commitb4ee9f56fd8e457c91a85bcebb124b088edee76e
treeb08d2b3a862c925432915d31a1a45d4911497514
parent557939c08faed7766aeee187c168ed4083c67e35
mesa/formatquery: Added texture gather/shadow related queries

From the ARB_internalformat_query2 specification:

   "- TEXTURE_SHADOW: The support for using the resource with shadow samplers
      is written to <params>.

    - TEXTURE_GATHER: The support for using the resource with texture gather
      operations is written to <params>.

    - TEXTURE_GATHER_SHADOW: The support for using resource with texture gather
      operations with shadow samplers is written to <params>."

For all of them,

    "Possible values returned are FULL_SUPPORT, CAVEAT_SUPPORT, or NONE.
     If the resource or operation is not supported, NONE is returned."

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