kmstest: Use util_open()
PATCH 1/2 kmstest: Use util_open()
Use the new util_open() helper instead of open-coding the method for finding a usable device. While at it, make the command-line interface more consistent with that of modetest by adding the -D and -M options.
--- tests/kmstest/Makefile.am | 4 +++- tests/kmstest/main.c | 45 +++++++++++++++++++++++++++++---------------- 2 files changed, 32 insertions(+), 17 deletions(-)
tests/kmstest/Makefile.am +3 -1
@@ -2,6 +2,7 @@ AM_CFLAGS = \ $(WARN_CFLAGS)\ -I$(top_srcdir)/include/drm \ -I$(top_srcdir)/libkms/ \ + -I$(top_srcdir)/tests/ \ -I$(top_srcdir) if HAVE_INSTALL_TESTS
@@ -17,7 +18,8 @@ kmstest_SOURCES = \ kmstest_LDADD = \ $(top_builddir)/libdrm.la \ - $(top_builddir)/libkms/libkms.la + $(top_builddir)/libkms/libkms.la \ + $(top_builddir)/tests/util/libutil.la run: kmstest ./kmstest
tests/kmstest/main.c +29 -16
67 lines not on this page · raw message
Signature · 6 lines
2.6.4 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 tests: add fsl-dcu-drm to modules
--- tests/util/kms.c | 1 + 1 file changed, 1 insertion(+)
tests/util/kms.c +1 -0
@@ -139,6 +139,7 @@ static const char * const modules[] = {"imx-drm" ,"rockchip" ,"atmel-hlcdc" , + "fsl-dcu-drm", };int util_open (const char *device,const char *module)
Signature · 6 lines
2.6.4 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm 2/2] tests: add fsl-dcu-drm to modules
Quoted 10 lines · Stefan Agner
Signed-off-by Stefan Agner <[email protected]>--- tests/util/kms.c | 1 + 1 file changed, 1 insertion(+)tests/util/kms.c +0
-0
tests/util/kms.c static const char * const modules[] = { · line 142
Quoted 4 lines
tests/util/kms.c +1
-0@@ -139,6 +139,7 @@ static const char * const modules[] = {"imx-drm" ,"rockchip" ,"atmel-hlcdc" , + "fsl-dcu-drm",
Thanks for the patches Stefan. I'll do a quick test and push them out shortly. Although please take a look at adding platform device support to the drm*Device API - if anything is unclear do ask. I won't bite :-)
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel