diff options
author | Marek Olšák <[email protected]> | 2011-03-05 20:32:28 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-03-08 23:52:37 +0100 |
commit | 5257a6dbc65d742e6d0fcf4278a4157b2f39fdf7 (patch) | |
tree | 6f70f3640ef7cb55bf5f7d94f52b11e4c550fb38 /src/mesa/state_tracker/st_extensions.c | |
parent | 5ef807c0361ed73d598619918b1e16aab0de3044 (diff) |
st/mesa: implement ARB_sync
The ServerWaitSync implementation matches Intel's driver.
The extension is advertised when pipe_screen::fence_finish is set.
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index d96985a3747..aaa1658f4a0 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -518,4 +518,8 @@ void st_init_extensions(struct st_context *st) if (screen->get_param(screen, PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR)) { ctx->Extensions.ARB_instanced_arrays = GL_TRUE; } + + if (screen->fence_finish) { + ctx->Extensions.ARB_sync = GL_TRUE; + } } |