mesa/formatquery: Added SRGB_{READ,WRITE} <pname> queries
authorAntia Puentes <apuentes@igalia.com>
Sat, 19 Dec 2015 18:14:51 +0000 (19:14 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:07 +0000 (15:14 +0100)
commitbcb2f9cdb97ab2b866e238780ba68908b10e2e79
tree85b064940ec7d47bff65728a125e225d94ae81f2
parente88cbb7a51051da66bf142515bc028559f999a64
mesa/formatquery: Added SRGB_{READ,WRITE} <pname> queries

From the ARB_internalformat_query2 specification:

   "- SRGB_READ: The support for converting from sRGB colorspace on read
      operations (see section 3.9.18) from 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.

    - SRGB_WRITE: The support for converting to sRGB colorspace on write
      operations to the resource is returned in <params>.
      This indicates that writing to framebuffers with this internalformat
      will encode to sRGB color spaces when FRAMEBUFFER_SRGB is enabled (see
      section 4.1.8).
      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