mesa/formatquery: Added a func to check if the <target> is supported
authorAntia Puentes <apuentes@igalia.com>
Wed, 16 Dec 2015 19:46:49 +0000 (20:46 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:05 +0000 (15:14 +0100)
commit806bc2bf223c03c488de5549582141824dcbbc40
tree351d2138729ef7cc2f2c418263b494e5c308fff5
parent4af3e5e9f1f80e18b5f9b198f9bd652936170908
mesa/formatquery: Added a func to check if the <target> is supported

From the ARB_internalformat_query2 spec:

  "If the particular <target> and <internalformat> combination do not make
   sense, or if a particular type of <target> is not supported by the
   implementation the "unsupported" answer should be given. This is not an
   error."

This function checks if the <target> is supported by the implementation.

v2: Allow RENDERBUFFER targets also on GLES 3 profiles.

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