Skip to content

Commit

Permalink
drm: reject modeless commits
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 20, 2024
1 parent af219a0 commit acfea3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,9 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {

const auto MODE = STATE.mode ? STATE.mode : STATE.customMode;

if (!MODE) // modeless commits are invalid
return false;

uint32_t flags = 0;

if (!onlyTest) {
Expand Down

0 comments on commit acfea3b

Please sign in to comment.