diff options
author | Rob Clark <robclark@freedesktop.org> | 2014-11-24 13:43:10 -0500 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2014-11-24 13:43:10 -0500 |
commit | 1fec623b029747fa811fab9b52effd8993fc605b (patch) | |
tree | c95495dbffbacb54c9eadb6a0e808b9905397672 /tests/modetest | |
parent | 29bb4c6911b21c026c3863799dcbeaa29981bf7e (diff) | |
download | libdrm-1fec623b029747fa811fab9b52effd8993fc605b.tar.gz libdrm-1fec623b029747fa811fab9b52effd8993fc605b.tar.bz2 libdrm-1fec623b029747fa811fab9b52effd8993fc605b.zip |
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>
Diffstat (limited to 'tests/modetest')
-rw-r--r-- | tests/modetest/modetest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index 6d06e3fa..ac3c9e3d 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -545,6 +545,8 @@ static struct resources *get_resources(struct device *dev) memset(res, 0, sizeof *res); + drmSetClientCap(dev->fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); + res->res = drmModeGetResources(dev->fd); if (!res->res) { fprintf(stderr, "drmModeGetResources failed: %s\n", |