summaryrefslogtreecommitdiff
path: root/lib/igt_kms.h
AgeCommit message (Collapse)AuthorFilesLines
2014-03-26lib: remove kmstest_create_fbDaniel Vetter1-3/+2
Use the new-style function using drm fourcc codes instead everywhere. To easily use thew fourcc based interface also expose bpp_depth_to_drm_format from the library. Finally include drm_fourcc.h from the igt_kms.h header since pretty much everyone needs this now. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-23lib: extract igt_aux.[hc]Daniel Vetter1-0/+3
And shovel all the various helpers in there. Also move igt_set_vt_graphics_mode to igt_kms.h since the function is implemented in igt_kms.c. And it fits better. I kinda missed this in the prep work. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: unnecessary header removal for drmtest.h, part 2Daniel Vetter1-0/+2
I've left unistd.h in it - it's not strictly required but most users of drmtest.h want it for the open helpers, and then you kinda need to close that file descriptor again ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: more unecessary header removalDaniel Vetter1-1/+0
This time big with media_fill.h Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: remove uncessary #includes from headersDaniel Vetter1-2/+2
Only include what the header itself needs. The big fish here is intel-gpu-tools.h. More will follow. One ugly thing removed here is the duplicated GEN6_TD_CTL #define, one of which was broken. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-13lib/igt_kms: rip out custom verbose loggin supportDaniel Vetter1-2/+0
Instead just piggy-pack on top of igt_log. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-11lib: fix header includeDaniel Vetter1-1/+1
drm/ path is for the headers from kernel sources, without when using the pkgconfig libdrm version. Cc: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-11lib: Fix igt_ouput_get_plane() typo (output)Damien Lespiau1-1/+1
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib/display: Wait for a vblank after SetPlane()Damien Lespiau1-2/+3
Let's be testing friendly and gently wait for the next vblank before returning from commit() when needed. After igt_display_commit() one can safely look at the CRC. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib: Include drm_fourcc.h from igt_kms.hDamien Lespiau1-0/+1
This include is needed for the DRM_FORMAT* defines used in the fb creation helpers. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib: Introduce a new helper kmstest_create_color_fb()Damien Lespiau1-0/+4
We need to create fbs of a single color in a few places. Time to abstract that out to a helper function. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib/display: Add support for DRM planesDamien Lespiau1-0/+6
We can now extend our plane support beyond primary and cursor planes. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib/display: Add a way to specify we don't care about the pipe to useDamien Lespiau1-0/+6
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib/display: Add support for the cursor planeDamien Lespiau1-2/+11
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib/display: Add an accessor to retrieve the number of pipesDamien Lespiau1-0/+1
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib: Introduce a for_each_connected_output() macroDamien Lespiau1-0/+4
So we can easily cycle through them in tests without knowing too many internal details about how igt_display_t organize its data. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib: Introduce symbolic names for display planesDamien Lespiau1-1/+1
It'd be nice to have symbolic names for planes instead of using an index in igt_output_get_plane(). We also namespace the enum to not conflict with anyone. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib: Introduce a modeset APIDamien Lespiau1-0/+59
The goals here are: - Reduce duplicated code in each KMS test - Provide an API that looks more like what we want for atomic modesets. The hope is then that it'll be easy to switch, at run-time, between the "legacy" path and atomic modesets, keeping the same API for tests. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-12-31kmstest: Fix up lifetimes of cairo objectsChris Wilson1-1/+2
cairo_t is the short lived drawing context, whereas cairo_surface_t is the heavyweight object that persists and is also tied to underlying GEM objects. So make the kmstest API reflect the different weights and fix the lifetime and underlying object reference leaks. Based on the fix by Paulo Zanoni. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-11-12lib: Move kms stuff from drmtest.c over to igt_kms.cOscar Mateo1-0/+102
This makes cairo dependencies easier to handle. Otherwise, we would have to litter drmtest all over with "#ifndef ANDROID" Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> [danvet: Add missing _GNU_SOURCE to igt_kms.c and missing include to intel_sprite_on.c] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>