mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
virgl: add assert and missing function parameter
Verify the pipe_fd_type to be of PIPE_FD_TYPE_NATIVE_SYNC.
Fixes: d1a1c21e76 "virgl: native fence fd support"
Suggested-by: Eric Engestrom <eric.engestrom@intel.com>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
61b535437e
commit
19af208c7d
1 changed files with 4 additions and 1 deletions
|
|
@ -1030,8 +1030,11 @@ static void virgl_set_shader_buffers(struct pipe_context *ctx,
|
|||
}
|
||||
|
||||
static void virgl_create_fence_fd(struct pipe_context *ctx,
|
||||
struct pipe_fence_handle **fence, int fd)
|
||||
struct pipe_fence_handle **fence,
|
||||
int fd,
|
||||
enum pipe_fd_type type)
|
||||
{
|
||||
assert(type == PIPE_FD_TYPE_NATIVE_SYNC);
|
||||
struct virgl_screen *rs = virgl_screen(ctx->screen);
|
||||
|
||||
*fence = rs->vws->cs_create_fence(rs->vws, fd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue