[Intel-gfx] [PATCH v2 5/5] tests: make drm_read platform agnostic
Chris Wilson
chris at chris-wilson.co.uk
Tue Aug 11 09:15:51 PDT 2015
On Tue, Aug 11, 2015 at 11:59:16AM -0400, Micah Fedke wrote:
>
> Update the drm_read test to operate on any platform to demonstrate the use of
> drm_open_driver(OPEN_ANY_GPU).
>
> To work on exynos, the event generation code is converted to use the new CRTC
> selection API for vblank. The first valid crtc is selected at fixture-time.
Pardon? If exoynos doesn't implement the generic drmWaitVBlank(), fix
it.
> pipe0_enabled() is updated to use the drmMode* wrapper functions instead of
> direct ioctls, and the unnecessary, intel-specific pipe<->crtc mapping ioctl is
> dropped.
Just drop the pipe lookup, we can just indeed just use index 0.
> With these updates in place, drm_read can run successfully on intel and exynos.
> Tested on ivb and peach-pi, respectively.
You don't need to change that much, especially changing the path through
the kernel.
Nak.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list