From f6d4c5e6a3adb78819b0256c4037296fcb84d4dc Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 26 Jun 2024 22:25:45 +0200 Subject: [PATCH] drm: prettify bitwise ops --- src/backend/drm/DRM.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 33495da..040b069 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -977,12 +977,12 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { return false; } - if (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER && !STATE.buffer) { + if ((COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER) && !STATE.buffer) { backend->backend->log(AQ_LOG_ERROR, "drm: No buffer committed"); return false; } - if (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER && STATE.buffer->attachments.has(AQ_ATTACHMENT_DRM_KMS_UNIMPORTABLE)) { + if ((COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER) && STATE.buffer->attachments.has(AQ_ATTACHMENT_DRM_KMS_UNIMPORTABLE)) { backend->backend->log(AQ_LOG_TRACE, "drm: Cannot commit a KMS-unimportable buffer."); return false; }