mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-22 05:49:48 +01:00
drm: fix fences according to spec (#105)
This commit is contained in:
parent
ae32a98232
commit
545f506a63
2 changed files with 5 additions and 6 deletions
|
@ -68,7 +68,7 @@ namespace Aquamarine {
|
|||
Hyprutils::Memory::CSharedPointer<SOutputMode> customMode;
|
||||
uint32_t drmFormat = DRM_FORMAT_INVALID;
|
||||
Hyprutils::Memory::CSharedPointer<IBuffer> buffer;
|
||||
int64_t explicitInFence = -1, explicitOutFence = -1;
|
||||
int32_t explicitInFence = -1, explicitOutFence = -1;
|
||||
Hyprutils::Math::Mat3x3 ctm;
|
||||
};
|
||||
|
||||
|
@ -84,8 +84,8 @@ namespace Aquamarine {
|
|||
void setCustomMode(Hyprutils::Memory::CSharedPointer<SOutputMode> mode);
|
||||
void setFormat(uint32_t drmFormat);
|
||||
void setBuffer(Hyprutils::Memory::CSharedPointer<IBuffer> buffer);
|
||||
void setExplicitInFence(int64_t fenceFD); // -1 removes
|
||||
void setExplicitOutFence(int64_t fenceFD); // -1 removes
|
||||
void setExplicitInFence(int32_t fenceFD); // -1 removes
|
||||
void enableExplicitOutFenceForNextCommit();
|
||||
void resetExplicitFences();
|
||||
void setCTM(const Hyprutils::Math::Mat3x3& ctm);
|
||||
|
||||
|
|
|
@ -99,13 +99,12 @@ void Aquamarine::COutputState::setBuffer(Hyprutils::Memory::CSharedPointer<IBuff
|
|||
internalState.committed |= AQ_OUTPUT_STATE_BUFFER;
|
||||
}
|
||||
|
||||
void Aquamarine::COutputState::setExplicitInFence(int64_t fenceFD) {
|
||||
void Aquamarine::COutputState::setExplicitInFence(int32_t fenceFD) {
|
||||
internalState.explicitInFence = fenceFD;
|
||||
internalState.committed |= AQ_OUTPUT_STATE_EXPLICIT_IN_FENCE;
|
||||
}
|
||||
|
||||
void Aquamarine::COutputState::setExplicitOutFence(int64_t fenceFD) {
|
||||
// internalState.explicitOutFence = fenceFD;
|
||||
void Aquamarine::COutputState::enableExplicitOutFenceForNextCommit() {
|
||||
internalState.committed |= AQ_OUTPUT_STATE_EXPLICIT_OUT_FENCE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue