virgl: Remove wrong EAGAIN handling for drmIoctl
authorLepton Wu <lepton@chromium.org>
Wed, 4 Sep 2019 18:53:37 +0000 (11:53 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Wed, 18 Sep 2019 03:36:10 +0000 (03:36 +0000)
commit417d602fdad22042ff1f90176f10c486a3bb0e9a
treeb12bda890a12f52a276c8dd6116c3c9f270a6a94
parentf8c44e4ed7886a7c81cbe86521fa6728efd27f5c
virgl: Remove wrong EAGAIN handling for drmIoctl

drmIoctl handles EAGAIN itself and actually it always return -1 on errors.
Remove the wrong handling of its return value. Also, print a warning when
it fails.

v2: - use _debug_printf instead of fprintf (Gurchetan Singh)

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net> (v1)
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c