diff options
author | Eric Anholt <[email protected]> | 2014-09-29 11:33:13 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-29 11:51:09 -0700 |
commit | b65761f764f2c03b375460b3d6e36227ec161c2d (patch) | |
tree | fcfac52f82bb741059198c70505689b87de13494 /src/gallium/drivers/vc4/vc4_context.c | |
parent | 76cd9955d96c1b0a13905e255571eb35b3aa2a99 (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.c | 1 |
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); |