Don't call dlsym() in our DRM master hooks

Not only is it faster to cache the function pointers, calling
dlsym() inside open()/close() can lead to deadlocks when using
Vulkan Video decoding on top of the Nvidia driver.
This commit is contained in:
Cameron Gutman
2025-10-12 22:49:29 -05:00
parent ff81f74391
commit 1144dbccb3
3 changed files with 73 additions and 27 deletions

View File

@@ -327,7 +327,7 @@ libdrm {
linux {
message(Master hooks enabled)
SOURCES += masterhook.c masterhook_internal.c
LIBS += -ldl
LIBS += -ldl -pthread
}
}
cuda {