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
|
|
@ -67,6 +67,8 @@ CHyprRenderer::CHyprRenderer() {
|
|||
|
||||
if (name.contains("nvidia"))
|
||||
m_nvidia = true;
|
||||
else if (name.contains("i915"))
|
||||
m_intel = true;
|
||||
|
||||
Debug::log(LOG, "DRM driver information: {} v{}.{}.{} from {} description {}", name, DRMV->version_major, DRMV->version_minor, DRMV->version_patchlevel,
|
||||
std::string{DRMV->date, DRMV->date_len}, std::string{DRMV->desc, DRMV->desc_len});
|
||||
|
|
@ -85,6 +87,8 @@ CHyprRenderer::CHyprRenderer() {
|
|||
|
||||
if (name.contains("nvidia"))
|
||||
m_nvidia = true;
|
||||
else if (name.contains("i915"))
|
||||
m_intel = true;
|
||||
|
||||
Debug::log(LOG, "Primary DRM driver information: {} v{}.{}.{} from {} description {}", name, DRMV->version_major, DRMV->version_minor, DRMV->version_patchlevel,
|
||||
std::string{DRMV->date, DRMV->date_len}, std::string{DRMV->desc, DRMV->desc_len});
|
||||
|
|
@ -2287,6 +2291,10 @@ bool CHyprRenderer::isNvidia() {
|
|||
return m_nvidia;
|
||||
}
|
||||
|
||||
bool CHyprRenderer::isIntel() {
|
||||
return m_intel;
|
||||
}
|
||||
|
||||
bool CHyprRenderer::isMgpu() {
|
||||
return m_mgpu;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue