gitignore: ignore kms-steal-crtc and kms-universal-planes
PATCH 1/2 gitignore: ignore kms-steal-crtc and kms-universal-planes
From: Gustavo Padovan <[email protected]>
--- .gitignore | 2 ++ 1 file changed, 2 insertions(+)
.gitignore +2 -0
@@ -93,6 +93,8 @@ tests/modeprint/modeprint tests/modetest/modetest tests/name_from_fd tests/proptest/proptest +tests/kms/kms-steal-crtc +tests/kms/kms-universal-planes tests/kmstest/kmstest tests/vbltest/vbltest tests/radeon/radeon_ttm
Signature · 6 lines
2.5.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 modetest: print signed values correctly
From: Gustavo Padovan <[email protected]>
--- tests/modetest/modetest.c | 2 ++ 1 file changed, 2 insertions(+)
tests/modetest/modetest.c +2 -0
@@ -314,6 +314,8 @@ static void dump_prop(struct device *dev, drmModePropertyPtr prop,printf ("\t\tvalue:" );if (drm_property_type_is (prop,DRM_MODE_PROP_BLOB ))dump_blob (dev, value); +else if (drm_property_type_is (prop,DRM_MODE_PROP_SIGNED_RANGE )) +printf (" %" PRId64"\n" , value);else printf (" %" PRIu64"\n" , value); }
Signature · 6 lines
2.5.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm 2/2] modetest: print signed values correctly
Hi Gustavo,
Quoted 12 lines · Gustavo Padovan
From: Gustavo Padovan <[email protected]>
Signed-off-by Gustavo Padovan <[email protected]>--- tests/modetest/modetest.c | 2 ++ 1 file changed, 2 insertions(+)tests/modetest/modetest.c +0
-0
tests/modetest/modetest.c static void dump_prop(struct device *dev, drmModePropertyPtr prop, · line 320
Quoted 7 lines
tests/modetest/modetest.c +2
-0@@ -314,6 +314,8 @@ static void dump_prop(struct device *dev, drmModePropertyPtr prop,printf ("\t\tvalue:" );if (drm_property_type_is (prop,DRM_MODE_PROP_BLOB ))dump_blob (dev, value); +else if (drm_property_type_is (prop,DRM_MODE_PROP_SIGNED_RANGE )) +printf (" %" PRId64"\n" , value);else printf (" %" PRIu64"\n" , value);
Looks like proptest needs a similar fix. I'll push that alongside this patch.
A few suggestions for follow up work (in case you get bored)
- factor dump_prop/blob into tests/util/kms.c and use it in proptest + modetest
- prepend "current" or alike to "value". or any other way to make
"value" stand out from "values".
- handle DRM_MODE_PROP_OBJECT :-)
Thanks
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel