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>
main
Rob Clark 2014-11-24 13:43:10 -05:00
parent 29bb4c6911
commit 1fec623b02
1 changed files with 2 additions and 0 deletions

View File

@ -545,6 +545,8 @@ static struct resources *get_resources(struct device *dev)
memset(res, 0, sizeof *res); memset(res, 0, sizeof *res);
drmSetClientCap(dev->fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
res->res = drmModeGetResources(dev->fd); res->res = drmModeGetResources(dev->fd);
if (!res->res) { if (!res->res) {
fprintf(stderr, "drmModeGetResources failed: %s\n", fprintf(stderr, "drmModeGetResources failed: %s\n",