Unify handling of DRM devices between DRM and VAAPI

SDL may not be able to give us a DRM FD for Vulkan windows.
This commit is contained in:
Cameron Gutman committed 2024-09-21 20:46:11 -05:00
1 parent 9cf305865b
commit 6f39d120cb
5 files changed
+147 -75

No files matched your search

+6
View File
@@ -36,4 +36,10 @@ public:
static
bool hasFastAes();
static
int getDrmFdForWindow(SDL_Window* window, bool* needsClose);
static
int getDrmFd(bool preferRenderNode);
};