mesa/formatquery: Added COLOR_ENCODING <pname> query.
authorAntia Puentes <apuentes@igalia.com>
Sat, 19 Dec 2015 18:10:51 +0000 (19:10 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:07 +0000 (15:14 +0100)
commite88cbb7a51051da66bf142515bc028559f999a64
tree2e9f77ea82288fd74225fb05aa45fcdc7b885ba2
parentb1755535ecfb5bacf21c3118c359196ad81b5e68
mesa/formatquery: Added COLOR_ENCODING <pname> query.

From the ARB_internalformat_query2 specification:

   "- COLOR_ENCODING: The color encoding for the resource is returned in
      <params>.  Possible values for color buffers are LINEAR or SRGB,
      for linear or sRGB-encoded color components, respectively. For non-color
      formats (such as depth or stencil), or for unsupported resources,
      the value NONE is returned."

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