drm: reject modeless commits

This commit is contained in:
Vaxry 2024-07-20 16:58:42 +02:00
parent af219a0a2c
commit acfea3bd1d

View file

@ -1344,6 +1344,9 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
const auto MODE = STATE.mode ? STATE.mode : STATE.customMode; const auto MODE = STATE.mode ? STATE.mode : STATE.customMode;
if (!MODE) // modeless commits are invalid
return false;
uint32_t flags = 0; uint32_t flags = 0;
if (!onlyTest) { if (!onlyTest) {