mesa: Add QueryInternalFormat to device driver virtual table
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 27 Oct 2015 14:18:45 +0000 (15:18 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:05 +0000 (15:14 +0100)
commit93d30c3de95a1d373285cd7353343817c23dbb64
treee0618d2e0150f6efafecc0fe184fe535a6a127af
parent283c8372cb74c3728c7837a85480251313cf002b
mesa: Add QueryInternalFormat to device driver virtual table

This new function queries different driver parameters for a particular target
and texture format. It is basically a driver hook to support
ARB_internalformat_query2.

Since ARB_internalformat_query2 introduced several new query parameters
over ARB_internalformat_query, having one driver hook for each parameter
is no longer feasible. So this is the generic entry-point for calls
to glGetInternalFormativ and glGetInternalFormati64v.

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