summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_context.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-09-29 11:33:13 -0700
committerEric Anholt <[email protected]>2014-09-29 11:51:09 -0700
commitb65761f764f2c03b375460b3d6e36227ec161c2d (patch)
treefcfac52f82bb741059198c70505689b87de13494 /src/gallium/drivers/vc4/vc4_context.c
parent76cd9955d96c1b0a13905e255571eb35b3aa2a99 (diff)
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.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c
index 5bb95fd46d2..34a100d2ab0 100644
--- a/src/gallium/drivers/vc4/vc4_context.c
+++ b/src/gallium/drivers/vc4/vc4_context.c
@@ -368,6 +368,7 @@ vc4_context_create(struct pipe_screen *pscreen, void *priv)
vc4_draw_init(pctx);
vc4_state_init(pctx);
vc4_program_init(pctx);
+ vc4_query_init(pctx);
vc4_resource_context_init(pctx);
vc4_init_cl(vc4, &vc4->bcl);