Commit 9a815677 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: fix blob updating

Two things about the code were wrong:
1. m_current is used in updateBlob() but was only updated afterwards
2. the assumption that the property having the same ID means it has the
same blob contents is not always true

BUG: 449285


(cherry picked from commit 97939cea)
parent 726e3cd9
Pipeline #212926 passed with stage
in 33 minutes and 53 seconds
......@@ -112,10 +112,8 @@ bool DrmProperty::needsCommit() const
void DrmProperty::setCurrent(uint64_t value)
{
if (m_current != value) {
updateBlob();
m_current = value;
}
m_current = value;
updateBlob();
}
uint64_t DrmProperty::current() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment