vc4: Add the necessary stubs for occlusion queries.
authorEric Anholt <eric@anholt.net>
Mon, 29 Sep 2014 18:33:13 +0000 (11:33 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 29 Sep 2014 18:51:09 +0000 (11:51 -0700)
commitb65761f764f2c03b375460b3d6e36227ec161c2d
treefcfac52f82bb741059198c70505689b87de13494
parent76cd9955d96c1b0a13905e255571eb35b3aa2a99
vc4: Add the necessary stubs for occlusion queries.

We have to expose them for GL 2.0, but we just always return a value of 0.
We should be advertising 0 query bits instead of 64, but gallium doesn't
have plumbing for that yet.  At least this stops the segfaults.
src/gallium/drivers/vc4/Makefile.sources
src/gallium/drivers/vc4/vc4_context.c
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_query.c [new file with mode: 0644]