diff options
author | Steam Deck User <deck@arch.steamdeck> | 2023-03-16 13:36:19 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-03-17 11:44:51 +0100 |
commit | 8cbdb596ebf79587a432ed40583630b6cd39ed88 (patch) | |
tree | 82c60558aaaa7a1fc1eb9ffc388f1dd84a9529d2 /src/cuda.c | |
parent | 689419a78238626aba887e974cbfcf5dff99de81 (diff) |
vaapi wip
Diffstat (limited to 'src/cuda.c')
-rw-r--r-- | src/cuda.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -37,15 +37,13 @@ bool gsr_cuda_load(gsr_cuda *self) { { NULL, NULL } }; + CUresult res; + if(!dlsym_load_list(lib, required_dlsym)) { fprintf(stderr, "gsr error: gsr_cuda_load failed: missing required symbols in libcuda.so/libcuda.so.1\n"); - dlclose(lib); - memset(self, 0, sizeof(gsr_cuda)); - return false; + goto fail; } - CUresult res; - res = self->cuInit(0); if(res != CUDA_SUCCESS) { const char *err_str = "unknown"; |