Skip to content

Commit

Permalink
drm: add AQ_MGPU_NO_EXPLICIT
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Aug 5, 2024
1 parent 6f5adc0 commit 8a8afd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Unless specified otherwise, a variable is enabled if and only if it's set to `1`
### DRM

`AQ_NO_ATOMIC` -> Disables drm atomic modesetting
`AQ_MGPU_NO_EXPLICIT` -> Disables explicit syncing on mgpu buffers

### Debugging

Expand Down
3 changes: 2 additions & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,8 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
}

// replace the explicit in fence if the blitting backend returned one, otherwise discard old. Passed fence from the client is wrong.
if (blitResult.syncFD.has_value())
static auto NO_EXPLICIT = envEnabled("AQ_MGPU_NO_EXPLICIT");
if (blitResult.syncFD.has_value() && !NO_EXPLICIT)
state->setExplicitInFence(blitResult.syncFD.value());
else
state->setExplicitInFence(-1);
Expand Down

0 comments on commit 8a8afd3

Please sign in to comment.