add resetExplicitFences
This commit is contained in:
parent
eca8220920
commit
6536bc8699
|
|
@ -82,6 +82,7 @@ namespace Aquamarine {
|
|||
void setBuffer(Hyprutils::Memory::CSharedPointer<IBuffer> buffer);
|
||||
void setExplicitInFence(int64_t fenceFD); // -1 removes
|
||||
void setExplicitOutFence(int64_t fenceFD); // -1 removes
|
||||
void resetExplicitFences();
|
||||
|
||||
private:
|
||||
SInternalState internalState;
|
||||
|
|
|
|||
|
|
@ -105,11 +105,13 @@ void Aquamarine::COutputState::setExplicitOutFence(int64_t fenceFD) {
|
|||
internalState.committed |= AQ_OUTPUT_STATE_EXPLICIT_OUT_FENCE;
|
||||
}
|
||||
|
||||
void Aquamarine::COutputState::onCommit() {
|
||||
internalState.committed = 0;
|
||||
internalState.damage.clear();
|
||||
|
||||
void Aquamarine::COutputState::resetExplicitFences() {
|
||||
// fences are now used, let's reset them to not confuse ourselves later.
|
||||
internalState.explicitInFence = -1;
|
||||
internalState.explicitOutFence = -1;
|
||||
}
|
||||
|
||||
void Aquamarine::COutputState::onCommit() {
|
||||
internalState.committed = 0;
|
||||
internalState.damage.clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue