i965: Use drmIoctl for DRM_I915_GETPARAM (v2)
authorChad Versace <chad.versace@intel.com>
Mon, 27 Jun 2016 18:33:36 +0000 (11:33 -0700)
committerChad Versace <chad.versace@intel.com>
Wed, 29 Jun 2016 20:44:23 +0000 (13:44 -0700)
commitd3a147ba401c9a493ddfe4538909dc7a0ef506ef
tree285c0172cface62a85d8733302af557406b37008
parentb928ff6f62144e20f4260cc1bb897f84b97dc925
i965: Use drmIoctl for DRM_I915_GETPARAM (v2)

Stop using drmCommandWriteRead for such a simple ioctl.

v2: Handle errno correctly. [ickle]

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/intel_screen.c