disable buffer readability checks on intel (#11515)
* dmabuf: disable buffer read check on intel readability checks directly on buffer fds on some intel laptops is broken, see https://gitlab.freedesktop.org/drm/intel/-/issues/9415 * sync: use rvalue ref in addwaiter doonreadable use rvalue reference in addwaiter and doonreadable, because we store the function in the SReadableWaiter a lot of the time, move it into place there when that happends or let it go out of scope after function call.
This commit is contained in:
parent
d9cf1cb78e
commit
ced38b1b0f
10 changed files with 27 additions and 13 deletions
|
|
@ -27,9 +27,9 @@ UP<CSyncReleaser> CDRMSyncPointState::createSyncRelease() {
|
|||
return makeUnique<CSyncReleaser>(m_timeline, m_point);
|
||||
}
|
||||
|
||||
bool CDRMSyncPointState::addWaiter(const std::function<void()>& waiter) {
|
||||
bool CDRMSyncPointState::addWaiter(std::function<void()>&& waiter) {
|
||||
m_acquireCommitted = true;
|
||||
return m_timeline->addWaiter(waiter, m_point, 0u);
|
||||
return m_timeline->addWaiter(std::move(waiter), m_point, 0u);
|
||||
}
|
||||
|
||||
bool CDRMSyncPointState::committed() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue