GPU: vulkan fallback

This commit is contained in:
Linus Dierheimer
2021-11-13 18:25:35 +01:00
parent fc77e40ea9
commit dff3ca58ae
9 changed files with 188 additions and 78 deletions
+1 -1
View File
@@ -101,6 +101,7 @@ typedef struct FFconfig
FFstrbuf localIpFormat;
FFstrbuf libPCI;
FFstrbuf libVulkan;
FFstrbuf libX11;
FFstrbuf libXrandr;
FFstrbuf libWayland;
@@ -274,7 +275,6 @@ typedef enum FFInitState
#define FF_LIBRARY_SYMBOL(symbolName) \
__typeof__(&symbolName) ff ## symbolName;
#define FF_LIBRARY_LOAD(libraryObjectName, libraryName, userLibraryName, returnValue) \
void* libraryObjectName = dlopen(userLibraryName.length == 0 ? libraryName : userLibraryName.chars, RTLD_LAZY); \
if(dlerror() != NULL || libraryObjectName == NULL) \