i965: perf: use drmIoctl() instead of ioctl()
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 6 Feb 2018 23:23:22 +0000 (23:23 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 8 Feb 2018 10:51:40 +0000 (10:51 +0000)
commitbd6c0cab606fa0a3b821e50542ba06ff714292bf
treed8e9c9a151cb512723ce26e8acc652f6b24cfeeb
parent0f952b778f8a3f38f3310a736360a1cda2eec6ea
i965: perf: use drmIoctl() instead of ioctl()

ioctl() might be interrupted, use drmIoctl() instead as it'll retry
automatically.

Fixes: 27ee83eaf7e "i965: perf: add support for userspace configurations"
Cc: "18.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/drivers/dri/i965/brw_performance_query.c