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
This commit is contained in:
Xaver Hugl 2022-08-04 15:36:26 +02:00
parent 8955a2420e
commit 97939ceae8

View file

@ -112,10 +112,8 @@ bool DrmProperty::needsCommit() const
void DrmProperty::setCurrent(uint64_t value) void DrmProperty::setCurrent(uint64_t value)
{ {
if (m_current != value) { m_current = value;
updateBlob(); updateBlob();
m_current = value;
}
} }
uint64_t DrmProperty::current() const uint64_t DrmProperty::current() const