diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-08-21 12:24:59 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2016-08-25 14:09:48 +0200 |
commit | 9daaa6f5a66ab6cc99c6f0af37fc1007ab3d09af (patch) | |
tree | 47e62319d0ddea75f93bccf52305133e2e0be5f3 /src/gallium/auxiliary/vl | |
parent | b662c70aeab6a92751514f30719c13a6de253b40 (diff) | |
download | external_mesa3d-9daaa6f5a66ab6cc99c6f0af37fc1007ab3d09af.zip external_mesa3d-9daaa6f5a66ab6cc99c6f0af37fc1007ab3d09af.tar.gz external_mesa3d-9daaa6f5a66ab6cc99c6f0af37fc1007ab3d09af.tar.bz2 |
gallium: add a pipe_context parameter to resource_get_handle
radeonsi needs to do some operations (DCC decompression) for OpenGL-OpenCL
interop and this is the only way to make it coherent with the current
context. It can optionally be set to NULL.
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/vl')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_winsys_dri3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c index 61d6205..3d596a6 100644 --- a/src/gallium/auxiliary/vl/vl_winsys_dri3.c +++ b/src/gallium/auxiliary/vl/vl_winsys_dri3.c @@ -243,7 +243,7 @@ dri3_alloc_back_buffer(struct vl_dri3_screen *scrn) memset(&whandle, 0, sizeof(whandle)); whandle.type= DRM_API_HANDLE_TYPE_FD; usage = PIPE_HANDLE_USAGE_EXPLICIT_FLUSH | PIPE_HANDLE_USAGE_READ; - scrn->base.pscreen->resource_get_handle(scrn->base.pscreen, + scrn->base.pscreen->resource_get_handle(scrn->base.pscreen, NULL, buffer->texture, &whandle, usage); buffer_fd = whandle.handle; |