buffers: revert state merging (#12461)
8e8bfbb0b1 added fifo and merged non
buffer states before comitting them, something about certain xwl non
buffer commits expects a commit to happend and causes regressions as in
low fps.
This commit is contained in:
parent
40d8fa8491
commit
210930bef9
4 changed files with 14 additions and 36 deletions
|
|
@ -550,13 +550,6 @@ void CWLSurfaceResource::commitState(SSurfaceState& state) {
|
|||
nullptr);
|
||||
}
|
||||
|
||||
if (m_current.updated.bits.damage) {
|
||||
// damage is always relative to the current commit
|
||||
m_current.updated.bits.damage = false;
|
||||
m_current.damage.clear();
|
||||
m_current.bufferDamage.clear();
|
||||
}
|
||||
|
||||
// release the buffer if it's synchronous (SHM) as updateSynchronousTexture() has copied the buffer data to a GPU tex
|
||||
// if it doesn't have a role, we can't release it yet, in case it gets turned into a cursor.
|
||||
if (m_current.buffer && m_current.buffer->isSynchronous() && m_role->role() != SURFACE_ROLE_UNASSIGNED)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue