mesa/formatquery: Added SRGB_DECODE_ARB <pname> query
authorAntia Puentes <apuentes@igalia.com>
Sat, 19 Dec 2015 18:17:39 +0000 (19:17 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:07 +0000 (15:14 +0100)
commitaeb759c7d631eb10a69245ba8d7b6a2179a268f5
tree0f8e3b851cb1af8f4db58d0a23de2538af1344f7
parentbcb2f9cdb97ab2b866e238780ba68908b10e2e79
mesa/formatquery: Added SRGB_DECODE_ARB <pname> query

From the ARB_internalformat_query2 specification:

   "- SRGB_DECODE_ARB: The support for toggling whether sRGB decode happens at
      sampling time (see EXT/ARB_texture_sRGB_decode) for the resource is
      returned in <params>.
      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