[RFC libdrm 5/6] tegra: Add helper library for tests (original) (raw)
Erik Faye-Lund kusmabite at gmail.com
Wed Feb 19 12:54:06 PST 2014
- Previous message: [RFC libdrm 5/6] tegra: Add helper library for tests
- Next message: [RFC libdrm 6/6] tegra: Add gr2d-fill test
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Feb 19, 2014 at 5:04 PM, Thierry Reding <thierry.reding at gmail.com> wrote:
diff --git a/tests/tegra/drm-test-tegra.h b/tests/tegra/drm-test-tegra.h new file mode 100644 index 000000000000..d1cb6b1ee440 --- /dev/null +++ b/tests/tegra/drm-test-tegra.h +int drmopen(const char *path) +{ + int fd, err; + + fd = open(path, ORDWR); + if (fd < 0) + return -errno; + + err = drmSetMaster(fd);
Hmmpf, do we really need modesetting for all tests? Can't tests opt-in on that instead?
- Previous message: [RFC libdrm 5/6] tegra: Add helper library for tests
- Next message: [RFC libdrm 6/6] tegra: Add gr2d-fill test
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]