mesa: Add support for the ARB_pipeline_statistics_query extension
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 2 Jan 2015 20:13:53 +0000 (12:13 -0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Wed, 18 Feb 2015 07:01:11 +0000 (23:01 -0800)
commit86ffc36d3c971417e1c38b29c3b7863368b5c6d9
tree67f98409e5c1fbc33ff21f0736e348d13311e242
parent2cd2831500443dc9ff4ea0bf645713c1f9da57d0
mesa: Add support for the ARB_pipeline_statistics_query extension

This was originally part of a single patch which added the extension, and
implemented it for i965 classic. For information about the evolution of the
patch, please see the subsequent commit.

One difference here as compared to the original mega patch is this does build
support for the compute shader query. Since it cannot be tested on any platform,
it will always return NULL for now. Jordan has already written a patch to
address this, and when that patch lands, this logic can be modified.

v2: Fix typo in subject (Brian Paul)
Add checks for desktop gl (Ilia)
Fail for any callers for now (Ilia)
Update QueryCounterBits for new tokens (Ilia)
Jordan: Use _mesa_has_compute_shaders

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
v3: Rebased on patch which adds the proper information to unstub tessellation
shaders.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mapi/glapi/gen/ARB_pipeline_statistics_query.xml [new file with mode: 0644]
src/mapi/glapi/gen/Makefile.am
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/config.h
src/mesa/main/extensions.c
src/mesa/main/mtypes.h
src/mesa/main/queryobj.c