mesa/formatquery: Added function to set 'unsupported' responses
authorAntia Puentes <apuentes@igalia.com>
Wed, 16 Dec 2015 19:36:31 +0000 (20:36 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:05 +0000 (15:14 +0100)
commit4af3e5e9f1f80e18b5f9b198f9bd652936170908
tree03028ec801f15915eb9af7e1e6917a3edd9faa6b
parenta6434f41cc580f75909afbfcd6fa71e23706f96f
mesa/formatquery: Added function to set 'unsupported' responses

The ARB_internalformat_query2 specification defines which is the
reponse best representing "not supported" or "not applicable" for
each <pname>.

Queries for unsupported features, targets, internalformats, combinations
of: target and internalformat, target and pname, pname and internalformat,
do not return an error but the corresponding 'unsupported' response.
We will use that response as the default answer.

For SAMPLES the 'unsupported' response is to not modify the 'params' buffer.

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