virgl: add assert and missing function parameter
authorRobert Foss <robert.foss@collabora.com>
Tue, 20 Nov 2018 15:38:27 +0000 (16:38 +0100)
committerRobert Foss <robert.foss@collabora.com>
Wed, 21 Nov 2018 14:59:00 +0000 (15:59 +0100)
commit19af208c7de52561ec8ecb99b61e799ffe4ef67c
tree047670f3a75ca51771320295d0f9d39056d01990
parent61b535437e2ea1115d6915fbd62d9b8745071525
virgl: add assert and missing function parameter

Verify the pipe_fd_type to be of PIPE_FD_TYPE_NATIVE_SYNC.

Fixes: d1a1c21e7621b5177feb "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>
src/gallium/drivers/virgl/virgl_context.c