Skip to contentSkip to conversation

gitignore: ignore kms-steal-crtc and kms-universal-planes

PATCH In review Gustavo Padovan 2 participants 3 messages Mar 22, 2016 – Mar 28, 2016

lore
Share & tools
lore
#0 lore raw

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
index 1b853a2..a44566f 100644
@@ -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
#1 lore raw

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
index a5ac5bd..21d5438 100644
@@ -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
#2 lore raw

Re: [PATCH libdrm 2/2] modetest: print signed values correctly

Hi Gustavo,

Quoted 12 lines · Gustavo Padovan

From: Gustavo Padovan <[email protected]>

---
 tests/modetest/modetest.c | 2 ++
 1 file changed, 2 insertions(+)
tests/modetest/modetest.c +0 -0
index a5ac5bd..21d5438 100644

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