platforms/drm: make SRC properties readable
They're 16.16 fixed point. Should make debugging easier
This commit is contained in:
parent
35ff7eb0ed
commit
b3e245b177
1 changed files with 4 additions and 2 deletions
|
@ -596,10 +596,12 @@ static void printProps(DrmObject *object)
|
||||||
auto list = object->properties();
|
auto list = object->properties();
|
||||||
for (const auto &prop : list) {
|
for (const auto &prop : list) {
|
||||||
if (prop) {
|
if (prop) {
|
||||||
|
uint64_t current = prop->name().startsWith("SRC_") ? prop->current() >> 16 : prop->current();
|
||||||
if (prop->isImmutable() || !prop->needsCommit()) {
|
if (prop->isImmutable() || !prop->needsCommit()) {
|
||||||
qCWarning(KWIN_DRM).nospace() << "\t" << prop->name() << ": " << prop->current();
|
qCWarning(KWIN_DRM).nospace() << "\t" << prop->name() << ": " << current;
|
||||||
} else {
|
} else {
|
||||||
qCWarning(KWIN_DRM).nospace() << "\t" << prop->name() << ": " << prop->current() << "->" << prop->pending();
|
uint64_t pending = prop->name().startsWith("SRC_") ? prop->pending() >> 16 : prop->pending();
|
||||||
|
qCWarning(KWIN_DRM).nospace() << "\t" << prop->name() << ": " << current << "->" << pending;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue