History log of /external/libdrm/tests/modetest/modetest.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
870942e56aac024da5e0a621275f6561a4ddab1b 03-Feb-2016 Sean Paul <seanpaul@chromium.org> Merge tag 'tags/libdrm-2.4.66' into master

Tag libdrm-2.4.66 from git://anongit.freedesktop.org/mesa/drm

Signed-off-by: Sean Paul <seanpaul@chromium.org>

Conflicts:
Android.mk
Makefile.am
configure.ac
freedreno/Android.mk
include/drm/drm_mode.h
intel/Android.mk
libkms/Android.mk
nouveau/Android.mk
radeon/Android.mk
tegra/tegra.c
tests/Makefile.am
xf86drmMode.c
xf86drmMode.h

Change-Id: I3186bde7f196d2f3438c4334591ee2a0c1371c96
c26266fcd082a8b67d1f32f5e5351cfa82c7accb 09-Dec-2015 Thierry Reding <treding@nvidia.com> modetest: Use util_open()

Use the new util_open() helper instead of open-coding the method for
finding a usable device.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
4664d657ead5ff176c92e8ac54e09ead2e6d94ca 09-Dec-2015 Thierry Reding <treding@nvidia.com> tests: Move name tables to libutil

These tables are duplicated in several places, so move them into libutil
so that they can be shared.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
1ec3c44bdd38051d870f64d0b2cc7dbd59760386 09-Dec-2015 Thierry Reding <treding@nvidia.com> tests: Split helpers into library

Some of the helpers, such as the pattern drawing helpers or the format
lookup helpers, have potential to be reused. Move them into a separate
library to make it easier to share them.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
99722bfec6f1bbfc5148701f85ac145140d46afb 15-Aug-2015 Emil Velikov <emil.l.velikov@gmail.com> modetest: fix shadowing warnings

No real issue here, but let's fix these so that real issues don't get
lost in the spam.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
6e84ada4ccf604c32a008fc20c00d79302135601 19-Aug-2015 Hyungwon Hwang <human.hwang@samsung.com> modetest: remove the trailing white spaces

This patch removes the trailing white spaces.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
/external/libdrm/tests/modetest/modetest.c
f05a74fb9cb07a02c9bade65d66ba6949a2567a2 23-Jan-2015 Thierry Reding <treding@nvidia.com> tests: modetest: Accept connector names in addition to connector IDs

Allow connector names to be used in the specification of the -s option.
This requires storing the string passed on the command-line so that it
can later be resolved to a connector ID (after the DRM device has been
opened).

Connector names are constructed from the connector type name and
connector type ID using the same format as used internally in the
Linux kernel.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
e6a10649298312cf0e35284b76f1442886bc9db2 28-May-2015 Boris BREZILLON <boris.brezillon@free-electrons.com> modetest: add atmel-hlcdc driver support

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
/external/libdrm/tests/modetest/modetest.c
360a7eacd4961ceab72554d36917f031a05ed030 06-May-2015 Tobias Jakobi <tjakobi@math.uni-bielefeld.de> modetest: only select plane with matching format

Don't assume that a plane supports any kind of pixelformat
but do a check first.

v2: Simplify the format check.
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
128344c2cf22385dedece5a3d774d3a24527d2de 28-Apr-2015 Emil Velikov <emil.l.velikov@gmail.com> modetest: replace malloc + memset with calloc

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/tests/modetest/modetest.c
c78917ee4fe6c787a5de9aaccc5319fdffc9a354 28-Apr-2015 Emil Velikov <emil.l.velikov@gmail.com> modetest: explicitly zero the newly allocated memory

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/tests/modetest/modetest.c
9915e68b3b4d69101f3cb6609e796fb8f63320e2 13-Apr-2015 Joonyoung Shim <jy0922.shim@samsung.com> modetest: destroy the cursor bo

Currently we are missing the bo_destroy() when modetest terminates.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
[Emil Velikov: Tweak the commit message.]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
4d760d7f46b96a88a2e5f21fa983c4806ece1219 28-Apr-2015 Joonyoung Shim <jy0922.shim@samsung.com> modetest: clear buffer and framebuffer for planes

Currently we don't destroy buffer and remove framebuffer for
planes when closing modetest.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
[Emil Velikov: Tweak the commit message. fb_id = 0 is unused]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
21170a8c63d2e994317b785f7f7e78ab7e0a4ac4 13-Apr-2015 Joonyoung Shim <jy0922.shim@samsung.com> modetest: fix the error path handling

Remove the framebuffer and destroy the bo when error occurs on set_mode
and test_page_flip.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
[Emil Velikov: Tweak the commit message.]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
bcaaa75cf482c7d218340c850ffc01f04b78b3dd 13-Apr-2015 Joonyoung Shim <jy0922.shim@samsung.com> modetest: make use of drmModeRmFB

We should remove the framebuffer before destroying the buffer.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
[Emil Velikov: Tweak the commit message. fb_id = 0 is unused]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
4e4d79d4cae92c5ec29882cea9b8f7e8355f1232 13-Apr-2015 Joonyoung Shim <jy0922.shim@samsung.com> modetest: fix Segmentation fault

If use -P option without -s option, the program segfaults due to
dev.mode.bo being NULL.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
[Emil Velikov: Tweak the commit message.]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
b1d19de76468fdb4ae7cb87791c77d1f8839a573 20-Apr-2015 Tobias Jakobi <tjakobi@math.uni-bielefeld.de> modetest: initialize handles/pitches in set_plane()

Only the 'offsets' array was initialized to zero.
Since bo_create only sets the handles which are
necessary, were we passing garbage data to the
kernel when calling drmModeAddFB2 later.

The issue only seems to appear when passing e.g.
NV12 data to the kernel, a case where not only
handles[0] is used. I therefore also removed the
corresponding comment.

v2: Do the same for set_mode(), set_cursors()
and test_page_flip().

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
0c8db0a563857239cfe2b38df1590c571db5a1f1 16-Apr-2015 Greg Hackmann <ghackmann@google.com> Add missing <strings.h> includes

A couple of files use ffs() without explicitly including strings.h.
Some systems will pull in ffs()'s declaration through another header
anyway, but not when compiling against bionic in AOSP master.

Signed-off-by: Greg Hackmann <ghackmann@google.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
0f45884ffc7a46dd4aef14ae6d227a10d8d24fd7 18-Dec-2014 Rob Clark <robclark@freedesktop.org> BACKPORT: fixup! libdrm: atomic mode set

(cherry picked from commit 6ddc823aeb1af0c70cdcd9b206aa45d1e5f394d7)
Signed-off-by: Sean Paul <seanpaul@chromium.org>
/external/libdrm/tests/modetest/modetest.c
1785e2e1f9e876f114465ecf6b6df1428b246833 15-Apr-2015 Greg Hackmann <ghackmann@google.com> Add missing <strings.h> includes

Change-Id: I03d3928ccb3e034a96752ea2a4b8398484d1fbfd
Signed-off-by: Greg Hackmann <ghackmann@google.com>
/external/libdrm/tests/modetest/modetest.c
0d78b37b1cac304ce5e84d1207f0a43abd29c000 15-Apr-2015 Rob Clark <robclark@freedesktop.org> modeprint: add missing encoder/connector type names

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/tests/modetest/modetest.c
9588e66dbd695dce24e0aba54eaf94f573ab5363 20-Mar-2015 Daniel Kurtz <djkurtz@chromium.org> tests: add rockchip to modetest, kmstest, vbltest and proptest

There is a rockchip drm kms driver.
Add "rockchip" to the static lists of driver names in the the standard
set of tests.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
[Emil Velikov: Resolve trivial conflicts.]
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
77703f61cb51350c12bb85db1a7296fa50839edb 12-Dec-2014 Philipp Zabel <p.zabel@pengutronix.de> tests: add support for imx-drm

Since imx-drm has graduated from staging it seems to be a good idea to
recognize it by default in the libdrm tests.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
d7c0a08bc576deb07df6c3f91f393ca8edd0c4bf 09-Dec-2014 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Allocate dumb buffers with the correct bpp

The modetest application uses libkms to allocate dumb buffers, leading
to overallocation due to the hardcoded 32 bpp value. This can even cause
failures in drivers when the resulting pitch is too large for the
hardware to handle and gets rejected by the driver when creating the
frame buffer.

Fix this by computing the required bpp value and allocating dumb buffers
directly without going through libkms.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
d6a4c2cbd11e357a9123f6d41f6d40d38e82e7f2 01-Dec-2012 Thierry Reding <thierry.reding@avionic-design.de> libdrm: Add NVIDIA Tegra support

Add the libdrm_tegra helper library to encapsulate Tegra-specific
interfaces to the DRM.

Furthermore, Tegra is added to the list of supported chips in the
modetest and vbltest programs.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
/external/libdrm/tests/modetest/modetest.c
fb4177046de19730a784c3c16e4b73aab0ec6e41 12-Oct-2013 Rob Clark <robclark@freedesktop.org> update signed/object prop types

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/tests/modetest/modetest.c
c2c0346e1f5ddec4f6497d7c6359157c5f32d442 08-Jun-2012 Ville Syrjälä <ville.syrjala@linux.intel.com> modetest: Print newline for empty blobs

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/tests/modetest/modetest.c
1fec623b029747fa811fab9b52effd8993fc605b 24-Nov-2014 Rob Clark <robclark@freedesktop.org> modetest: universal plane support

Minimal support, so we can at least dump properties of primary/cursor
planes.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/tests/modetest/modetest.c
33bad73b273bcb2ebac430d7b572930c0fbfbeed 07-Sep-2014 Benjamin Gaignard <benjamin.gaignard@linaro.org> modetest: Add support of STI driver

Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
/external/libdrm/tests/modetest/modetest.c
8e93afc9765f1de613c65a76e9a86e17db96e653 27-Jul-2014 Emil Velikov <emil.l.velikov@gmail.com> all: include config.h only when available and use its defines

... rather than explicitly redefining HAVE_STDINT_H and _GNU_SOURCE.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/tests/modetest/modetest.c
0e512794bf6281edfa4543ae7cc408d52ec6e2f3 22-Apr-2014 Rob Clark <robclark@freedesktop.org> modetest: add cursor support

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/tests/modetest/modetest.c
de0970203091618834e4753c14d5169770797800 10-Jan-2014 Vincent ABRIOU <vincent.abriou@st.com> modetest: add the possibility to select the refresh frequency for a mode

When mode is selected we only give the name of the mode as parameter.
But sometime, two different modes have the same name but not
the same vrefresh frequency.
This patch give the possibility to select a mode by its name
and optionally by its refresh frequency.

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/tests/modetest/modetest.c
d8954154fe20036f442e249d964b575a7374c571 08-Sep-2013 Ilia Mirkin <imirkin@alum.mit.edu> modetest: allow setting a scaling factor when showing plane

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robdclark@gmail.com>
/external/libdrm/tests/modetest/modetest.c
b50826dbd6a10e89ed03c23a16bf62e7d554a2d6 08-Sep-2013 Ilia Mirkin <imirkin@alum.mit.edu> modetest: add a -D option to specify a device to be used

This is helpful for differentiating between multiple devices that use
the same module.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robdclark@gmail.com>
/external/libdrm/tests/modetest/modetest.c
4a8da02e524d5d70ec638477e36fcafd2c8152ec 29-Aug-2013 Emil Velikov <emil.l.velikov@gmail.com> tests/modetest: silence compiler warning about uninitialised variables

The compiler is unaware of that we have at least one crts/connector/plane
thus it complains that some of our variables will be used uninitialised.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
/external/libdrm/tests/modetest/modetest.c
dba6bec3ab5ba966a6ee3527e711c51e47229f32 30-Aug-2013 Rob Clark <robclark@freedesktop.org> tests: add msm

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/tests/modetest/modetest.c
a4f2f1b9d1c0b6b7f740951525a14b3d328f0acf 19-Mar-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Try all possible encoders for a connector

When building the pipeline, instead of using only the encoders attached
to a connector, take all possible encoders into account to locate a
CRTC.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
2c5ee84d30cbd3fba61a8426b1e6bdd4f385de13 19-Mar-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Support pipes with multiple connectors

The -s argument can now take a list of connectors. Configure all of them
in cloned mode using a single CRTC.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
b1e0bdeb70b68754c6c4ab1c7d0161709960d49c 19-Mar-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Rename struct connector_arg to struct pipe_arg

This prepares the code for handling multiple connectors in a single
pipeline in a cloned configuration.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
3813e0f8e1ee4885823cdd0b50b05970257adddc 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Split mode setting and plane setup

There's not reason to require setting a mode to test planes. Split the
two operations.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
eabf199dffb0d42e959c50aa820b39228196e031 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Give the CRTC ID to the -P option

Planes are associated with CRTCs, not connectors. Don't try to be too
clever, use the CRTC ID in the -P option. This prepares for splitting
CRTC and planes setup.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
56592680bbb1bb73d08bdce317046d0401dcfba0 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Store the mode in the crtc structure

This prepares the code for the split in separate functions of CRTC and
planes setup.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
a6349d0a0f9d3e017ac761ba912279c7d1e94eb7 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Store the crtc in the connector_arg structure

This prepares the code for the split in separate functions of CRTC and
planes setup.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
b373de3095e7518d62cfc99a1b22da8dc3435a88 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Remove the struct connector_arg encoder field

The field is no needed, make it a local variable where used.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
605efd7e05e94b8d9d742d3a8af1040776e2742d 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Compute CRTC pipe number as needed

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
549fe0ba627a67b6ae1334eb5cf274a3dfb1fd69 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Create a device structure

Instead of passing the device fd and resources as global variables group
them in a device structure and pass it explictly to all functions that
need it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
dab3c80203e562cfdbe33e7d1627c9dde2f5a7de 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Remove the -m argument

The argument isn't used, remove it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
581c7cf86a96a81e76288c8abca03c7f29eac3af 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Print the plane ID when setting up a plane

As modetest automatically selects an unused plan, providing the plane ID
allows modifying plane properties for the selected planes.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
7badcca4925480ffdc4f3aa5efb88624ce451e70 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Allow specifying plane position

Extend the -P option to allow specifying the plane x and y offsets. The
position is optional, if not specified the plane will be positioned at
the center of the screen as before.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
d725227cec822b8cfbeb541be17aae30b7612b9f 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Add a command line parameter to set properties

The -w parameter can be used to set a property value from the command
line, using the target object ID and the property name.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
6e0c74c5f8860748f03dad4548d3ef2cf2df5489 01-Mar-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Don't limit mode set and planes to two instances

Configuring mode on more than two connectors or two planes is perfectly
valid. Support it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
02fa8f79b05456184028f014432647b19601a288 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Retrieve all resources in one go

Instead of retrieving resources as they are needed, retrieve them all
(except property blobs) in one go at startup.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
ab52756a3632fdc38a915a9bbda0b2089b09e38e 27-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Add a command line parameter to drop master after mode set

If the -d parameter is specified, modetest will drop master permissions
after setting the mode.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
45901fdae66441ffec681e3dbd46b5530107a045 08-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Add a command line parameter to select the driver

If the -M parameter is specified, modetest will use the requested device
name instead of trying its builtin list of device names.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
/external/libdrm/tests/modetest/modetest.c
ef07acf5b79f86ef86efe6e72c1de5726c97e41d 08-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Sort command line arguments

The current mostly random sort order hinders code readability. Sort the
options alphabetically in the code, and by group in the help message.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
/external/libdrm/tests/modetest/modetest.c
c93f4af0588d02c411d1526193ba1d63f76551b5 08-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Remove extern declarations of opt(arg|ind|err|opt)

Those variables are declared in unistd.h, there's no need to redeclare
them here.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
/external/libdrm/tests/modetest/modetest.c
ca9c8f06e0f560082dcd0943e9be29ba9a915ee3 11-Feb-2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Fix warnings

Enable all standard automake warnings except for -Wpointer-arith (as the
test pattern generation code uses void pointer arithmetics) and fix
them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
6e8f868e034531b66a215e4e6d978b43b58b92d0 01-Aug-2013 Rob Clark <robclark@freedesktop.org> tests: add tilcdc to modetest/vbltest

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/tests/modetest/modetest.c
2c26a106fcfb692badef4c42faaed46508a3d1d3 17-Apr-2013 Ville Syrjälä <ville.syrjala@linux.intel.com> modetest: Reduce the length of the connector type string

Spelling out eDP or DP make for a ridicilously long string which plays
havoc with formatting. Just say eDP or DP.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
8e56579b203a11c718c5e3da6fdb03b4f9b9fe56 17-Apr-2013 Ville Syrjälä <ville.syrjala@linux.intel.com> modetest: Print possible_crtcs for planes

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
6fa2b29d226306870eebe93afb2106ca7d79569b 12-Aug-2012 Tobias Klausmann <tobias.klausmann@mni.thm.de> tests/modetest: Add a forgotten return, needed for opensuse buildservice

Signed-off-by: Marek Olšák <maraeo@gmail.com>
/external/libdrm/tests/modetest/modetest.c
ebd7904877d08525beb5039e4ea2f5b6c0a7c23f 23-Jul-2012 Rob Clark <rob@ti.com> modetest: fix uninitialized fourcc

If color format for CRTC layer is not specified on commandline, then
c->fourcc is unintialized resulting in addfb call failing.

Signed-off-by: Rob Clark <rob@ti.com>
/external/libdrm/tests/modetest/modetest.c
db004badef9315ba6a5f165d0974dd5afd5a6178 20-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modeset: Split buffer allocation to a separate file

As the modeset test application is often referred to as an example of
the KMS API usage, move test pattern generation and buffer allocation to
a separate file to keep it simple and clear.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
cc90ffa9b18fc6f925a3a2c36131332b8af558f8 20-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Make frame buffer format configurable on the command line

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
0375222c714e8b7ba55f12d5cb389383be1cf54d 20-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Move connector and plane parsing to separate functions

This will make it easier to add additional parameters to the connector
and plane arguments.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
edcef53685edf5fb94a1171f003b9516a90df368 20-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Add test pattern support for missing RGB formats

Implement tiles and SMPTE test pattern generation for the RGB565,
BGR888, RGB888, ARGB8888, BGRA8888 and BGRX8888 formats.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
86402a2a0cf4f1c4dfa25d36043abd07a8cf8373 20-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Add test pattern support for missing planar YUV formats

Implement tiles and SMPTE test pattern generation for the NV12, NV21,
NV16 and NV61 formats.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
8b6f3e32b8c6235e686525d766402c4fc6afcfba 20-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Add test pattern support for missing packed YUV formats

Implement tiles and SMPTE test pattern generation for the UYVY, VYUY and
YVYU formats.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
a94ee624292bff96ea1d38e8a0a3fbeefec42fb6 20-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Add SMPTE test pattern

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
3fdc1777ee156ebfa4281b49d8783adbbcae3ee1 20-Jul-2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com> modetest: Unify buffer allocation

Merge the create_test_buffer() and create_grey_buffer() functions into a
single buffer allocation function that takes the pixel format and fill
pattern as parameters.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
/external/libdrm/tests/modetest/modetest.c
c0ed9b23ecb48b8301f66d2270e638249709e94e 28-Jun-2012 Kristian Høgsberg <krh@bitplanet.net> modetest: Dump bit field names
/external/libdrm/tests/modetest/modetest.c
25e4cb4659c62817aae2ca3b83f2d4f598d6474b 05-Jun-2012 Rob Clark <rob@ti.com> modetest: support plane properties

Add support to display plane properties.

Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
/external/libdrm/tests/modetest/modetest.c
6df9e6af4b34ef2c5278941ee78de029e4040485 05-Jun-2012 Rob Clark <rob@ti.com> modetest: support bitmask properties

Add support to display bitmask properties.

Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
/external/libdrm/tests/modetest/modetest.c
86dece4cf2f7180b854fbd318fa1a57793f0deac 15-May-2012 Paulo Zanoni <paulo.r.zanoni@intel.com> modetest: print CRTC properties

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Reviewed-by: Rob Clark <rob@ti.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
/external/libdrm/tests/modetest/modetest.c
e07b650662ea0529d99741691c47856ef1034c9c 04-May-2012 Inki Dae <inki.dae@samsung.com> libdrm: add exynos drm support

this patch adds libdrm_exynos helper layer that inclues some intefaces
for exynos specific gem and virtual display driver and also adds exynos
module name to modtest and vbltest.

Changelog v2:
- fixed exynos broken ioctl.
the pointer of uint64_t *edid should be removed.
- removed unnecessary definitions.
- added drm prime interfaces.
this feature is used to share a buffer between drivers or memory managers
and for this, please, refer to below links:
http://www.mjmwired.net/kernel/Documentation/dma-buf-sharing.txt
http://lwn.net/Articles/488664/

this patch is based on a link below:
git://anongit.freedesktop.org/mesa/drm
commit id: d72a44c7c4f5eea9c1e5bb0c36cb9e0224b9ca22

Reviewed-by: Rob Clark <rob@ti.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Rob Clark <rob@ti.com>
/external/libdrm/tests/modetest/modetest.c
d72a44c7c4f5eea9c1e5bb0c36cb9e0224b9ca22 21-Apr-2012 Paulo Zanoni <paulo.r.zanoni@intel.com> modetest: print more about our properties

In the future we'll have more than just connector properties, so create
a dump_prop function that can handle any property (instead of the
current dump_props function that only handles connector properties).

Also, make this function print a lot more information about the existing
properties.

Also change the printed indentation of the modes to make the output more
readable.

The previous function dump_props also segfaulted when we didn't have
enought permissions. The new function does not segfault in this case (by
checking for the return value of drmModeGetProperty).

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
/external/libdrm/tests/modetest/modetest.c
0ef7644fe5161d3b50f9550ebbf8cbbabd51706f 21-Apr-2012 Paulo Zanoni <paulo.r.zanoni@intel.com> modetest: call drmModeFreePlaneResources

24 (16 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 7
at 0x402994D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4A25950: drmMalloc (xf86drm.c:147)
by 0x4A2E26D: drmModeGetPlaneResources (xf86drmMode.c:951)
by 0x4025FF: dump_planes (modetest.c:276)
by 0x4052AF: main (modetest.c:1120)

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
/external/libdrm/tests/modetest/modetest.c
a10bcaaf668ab16233df10c2742dcb497e17d588 21-Apr-2012 Paulo Zanoni <paulo.r.zanoni@intel.com> modetest: fix drmModeGetConnector memory leak

Don't "continue" without freeing the connector.

192 bytes in 6 blocks are indirectly lost in loss record 6 of 12
at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4E30DD8: drmMalloc (xf86drm.c:147)
by 0x4E35024: drmAllocCpy (xf86drmMode.c:73)
by 0x4E35D69: drmModeGetConnector (xf86drmMode.c:507)
by 0x402F22: dump_connectors (modetest.c:181)
by 0x40261B: main (modetest.c:801)

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
/external/libdrm/tests/modetest/modetest.c
9b44fbd393b8db571badae41881f490145404ae0 21-Apr-2012 Paulo Zanoni <paulo.r.zanoni@intel.com> modetest: fix some compiler warnings

Use unsigned int instead of int:
- modetest.c:90:1: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- modetest.c:98:1: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- modetest.c:118:1: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- modetest.c:286:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- modetest.c:303:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- modetest.c:694:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- modetest.c:1088:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

The 'fd' variable is global, we don't need to pass it as an argument:
- modetest.c:998:40: warning: unused parameter ‘fd’ [-Wunused-parameter]

We don't use the 'modeset' variable:
- modetest.c:1025:8: warning: variable ‘modeset’ set but not used [-Wunused-but-set-variable]

V2: rebase, clear some more warnings

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
/external/libdrm/tests/modetest/modetest.c
67fd052c013a493cd644d2e3495fab8b5823b330 10-Apr-2012 Rob Clark <rob@ti.com> modetest: fix typo

Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rob Clark <rob@ti.com>
/external/libdrm/tests/modetest/modetest.c
2f1e2101b4dc0a6dc1c1d1c59c5cc5fbc54b90cf 02-Jan-2012 Rob Clark <rob@ti.com> modetest: add AR15/XR15 (RGB-1555) formats

Signed-off-by: Rob Clark <rob@ti.com>
/external/libdrm/tests/modetest/modetest.c
b83ad866220911e5be1704e6df085705e5ba8eae 15-Dec-2011 Rob Clark <rob@ti.com> modetest: add YUV and multi-planar support

Signed-off-by: Rob Clark <rob@ti.com>
/external/libdrm/tests/modetest/modetest.c
d55de747a2bdec5b4885a6c86ea6707e15dfefb5 15-Dec-2011 Rob Clark <rob@ti.com> modetest: add drm_plane support

Signed-off-by: Rob Clark <rob@ti.com>
/external/libdrm/tests/modetest/modetest.c
ef1b958cc831df3d33a366d1db2db2c88187229e 28-Mar-2012 Rob Clark <rob@ti.com> omap: add omapdrm support

This adds libdrm_omap helper layer (as used by xf86-video-omap,
omapdrmtest, etc).

Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
[danvet: pushed for Rob, he doesn't yet have commit access.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
/external/libdrm/tests/modetest/modetest.c
d23146f3f0ad14c8ad482a4832cae859c8d646f2 19-Oct-2011 Jakob Bornecrantz <jakob@vmware.com> modetest: Call dirty fb on modeset

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
/external/libdrm/tests/modetest/modetest.c
680b9c4fa3dfb329bd74ec08c17cfc876ea2fc5b 19-Oct-2011 Jakob Bornecrantz <jakob@vmware.com> modetest: Print extra info if we fail to create a framebuffer

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
/external/libdrm/tests/modetest/modetest.c
3c8adda6e1e6b0471b3d70a63d795622bbeb1580 28-Sep-2011 Jakob Bornecrantz <jakob@vmware.com> modetest: Check error message from pageflip ioctl

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
/external/libdrm/tests/modetest/modetest.c
dc11db2e282c522219bb6e419eb648f3e836bdc0 16-Sep-2011 Jakob Bornecrantz <jakob@vmware.com> tests: Add vmwgfx driver to probed drivers in tests

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
/external/libdrm/tests/modetest/modetest.c
b317c96361f88a0a4ccb2faeff09b0476d142c68 11-Oct-2011 Jesse Barnes <jbarnes@virtuousgeek.org> modetest: use 24 bit depth on the framebuffer

It's more compatible; at least the Intel driver now rejects 32 bit
depths since it generally can't support real 32 bit framebuffers
(supports 30, 36, and 64 bit, but not 32).
/external/libdrm/tests/modetest/modetest.c
a697fb6acad7992c3d23bb6a663663694782eb7b 17-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> modetest: Do no flip twice to a current front buffer

The incorrect order was:
fb, other_fb, other_fb, fb_id, other_fb, ..
/external/libdrm/tests/modetest/modetest.c
8fef29093fae2a08f8c1cb4946687bf4bb62a1ca 17-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> modetest: Create buffers using libkms
/external/libdrm/tests/modetest/modetest.c
7ec9a1effa4f551897f91f3b017723a8adf011d9 09-Sep-2010 Chris Wilson <chris@chris-wilson.co.uk> modetest: Fix drawing routines to use stride.
/external/libdrm/tests/modetest/modetest.c
0da84f89c2cb25416bd3bdecae24f287b08cdb76 09-Sep-2010 Jesse Barnes <jbarnes@virtuousgeek.org> modetest: align fb pitch to 64 bytes

Docs say this is necessary, and the kernel now enforces this.
/external/libdrm/tests/modetest/modetest.c
b8abe6139e5c6779ee87d983346f0f65bf67462e 07-Sep-2010 Jesse Barnes <jbarnes@virtuousgeek.org> modetest: add edp and TV connector names to the connector name array
/external/libdrm/tests/modetest/modetest.c
e6b3f906cef26e1efb8625f5dd4e460b4c79a771 26-Mar-2010 Jesse Barnes <jbarnes@virtuousgeek.org> modetest: add optional select codepath

For misc. testing.
/external/libdrm/tests/modetest/modetest.c
9a37455b35d746d694760cfe8850a8bf856d73c9 27-Feb-2010 Marcin Kościelnicki <koriakin@0x04.net> tests/modetest: Don't get_props on a connector after freeing it.
/external/libdrm/tests/modetest/modetest.c
694ef59532253727176ed0ce9077ae3ec41dd457 27-Feb-2010 Marcin Kościelnicki <koriakin@0x04.net> tests: vrefresh is actually not * 1000.
/external/libdrm/tests/modetest/modetest.c
ecb668e1efd30512d27f5bfc331e8e754b6e15ca 27-Feb-2010 Marcin Kościelnicki <koriakin@0x04.net> tests: Add nouveau to list of supported modules.
/external/libdrm/tests/modetest/modetest.c
e4a519635f75bde38aeb5b09f2ff4efbf73453e9 30-Jan-2010 Matthew W. S. Bell <matthew@bells23.org.uk> Tidy up compile warnings by cleaning up types.
/external/libdrm/tests/modetest/modetest.c
59d97e7d6807d9cd076d4e8374aca1d9e8027a6b 09-Dec-2009 Kristian Høgsberg <krh@bitplanet.net> modetest: Error out if pageflipping is requested but not available
/external/libdrm/tests/modetest/modetest.c
6f1eba0548cd6a96e91a4e8be7b91ba6a936eb98 04-Dec-2009 Jesse Barnes <jbarnes@virtuousgeek.org> modetest: fix build error due to page_flip_handler name change

Forgot to update this when pushing the pageflip bits.
/external/libdrm/tests/modetest/modetest.c
1e1b3c0a93281ce8df42bbdddfe3e51dccc4d5ea 17-Nov-2009 Kristian Høgsberg <krh@bitplanet.net> modetest: add pageflip test case to modetest
/external/libdrm/tests/modetest/modetest.c
81644198aeced288d26e17fadd8e5eb19798352f 22-Jun-2009 Jesse Barnes <jbarnes@virtuousgeek.org> modetest: use gtt unmap for object

Match gtt map/unmap for correctness.
/external/libdrm/tests/modetest/modetest.c
9fc85b4084b69fefab3dbdf1f6cf97ccb47c963a 23-Feb-2009 Kristian Høgsberg <krh@redhat.com> modetest: Print names of properties.
/external/libdrm/tests/modetest/modetest.c
8b8803695b24d4cb4d041437a4709be06e59471b 04-Feb-2009 Kristian Høgsberg <krh@redhat.com> modetest: Add syntax to also specify a crtc when setting a mode.
/external/libdrm/tests/modetest/modetest.c
7a389aab86bde183de8806878b8cf055f662ee73 03-Feb-2009 Kristian Høgsberg <krh@redhat.com> modetest: Use cairo (if available) to paint a better pattern.
/external/libdrm/tests/modetest/modetest.c
2c113a1b159f57ab94b54316ece49c677cfe04ce 03-Feb-2009 Kristian Høgsberg <krh@redhat.com> modetest: Don't sleep when just dumping state, wait for key for modeset.
/external/libdrm/tests/modetest/modetest.c
669fde3472ae71c55cc7526e3b3bd6fe00d6a5a5 03-Feb-2009 Kristian Høgsberg <krh@redhat.com> modetest: Handle setting modes on multiple crtcs with one fb.
/external/libdrm/tests/modetest/modetest.c
d9c55a6becb530dcf11bc980cb6b31843be0b8c2 03-Feb-2009 Kristian Høgsberg <krh@redhat.com> modetest: Use a more interesting test pattern.
/external/libdrm/tests/modetest/modetest.c
bf46e0941fc6d342ad38057f23c8a74ac03b72f0 02-Feb-2009 Kristian Høgsberg <krh@redhat.com> No need to pin buffer anymore in modetest.c
/external/libdrm/tests/modetest/modetest.c
0243c9f801a35de3465a0321c02f18a4d07ce5b8 18-Dec-2008 Kristian Høgsberg <krh@redhat.com> modetest: Print more stuff. Prettier.
/external/libdrm/tests/modetest/modetest.c
731cd5526e5c732d51307b26e784f454a724a699 17-Dec-2008 Jesse Barnes <jbarnes@virtuousgeek.org> libdrm: add mode setting files

Add mode setting files to libdrm, including xf86drmMode.* and the new
drm_mode.h header. Also add a couple of tests to sanity check the
kernel interfaces and update code to support them.
/external/libdrm/tests/modetest/modetest.c
9583c099b4a08b49e03f7b461c344b6d277fd262 11-Dec-2008 Jesse Barnes <jbarnes@virtuousgeek.org> Revert "Merge branch 'modesetting-gem'"

This reverts commit 6656db10551bbb8770dd945b6d81d5138521f208.

We really just want the libdrm and ioctl bits, not all the driver
stuff.
/external/libdrm/tests/modetest/modetest.c
8f5d8ba97e82072b2403bff0bf836a09640108a6 19-Nov-2008 Jesse Barnes <jbarnes@virtuousgeek.org> Update modetest
/external/libdrm/tests/modetest/modetest.c