intel/common: provide common ioctl routine
authorMark Janes <mark.a.janes@intel.com>
Thu, 25 Jul 2019 17:50:36 +0000 (10:50 -0700)
committerMark Janes <mark.a.janes@intel.com>
Thu, 1 Aug 2019 23:38:40 +0000 (16:38 -0700)
commit7852fe54159cb6602a4408b8107b52999890dc79
treea81d986430509aedc6defb1f1cb3b78e2e6fb677
parentb40ba2db6c81021f83465a4ac32922a064cc91b2
intel/common: provide common ioctl routine

i965 links against libdrm for drmIoctl, but anv and iris both
re-implement this routine to avoid the dependency.

intel/dev also needs an ioctl wrapper, so lets share the same
implementation everywhere.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/gallium/drivers/iris/iris_batch.c
src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_fence.c
src/gallium/drivers/iris/iris_screen.c
src/intel/common/gen_gem.h
src/intel/vulkan/anv_gem.c