diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-17 22:27:14 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-18 02:14:27 +0200 |
commit | 0a2806972f51109024a114a1c8ad5396e9d535c7 (patch) | |
tree | 6db01b3f6606a51ca9ef7c1299c5f0b9c452d090 /src/cuda.c | |
parent | 93225fbc3bfe577adcfe91cce6ab87dfea6b0ff3 (diff) |
Experimental wayland support, test 1
Diffstat (limited to 'src/cuda.c')
-rw-r--r-- | src/cuda.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,6 +3,7 @@ #include <string.h> #include <stdio.h> #include <dlfcn.h> +#include <assert.h> bool gsr_cuda_load(gsr_cuda *self, Display *display, bool do_overclock) { memset(self, 0, sizeof(gsr_cuda)); @@ -31,6 +32,7 @@ bool gsr_cuda_load(gsr_cuda *self, Display *display, bool do_overclock) { { (void**)&self->cuMemcpy2D_v2, "cuMemcpy2D_v2" }, { (void**)&self->cuGraphicsGLRegisterImage, "cuGraphicsGLRegisterImage" }, + { (void**)&self->cuGraphicsEGLRegisterImage, "cuGraphicsEGLRegisterImage" }, { (void**)&self->cuGraphicsResourceSetMapFlags, "cuGraphicsResourceSetMapFlags" }, { (void**)&self->cuGraphicsMapResources, "cuGraphicsMapResources" }, { (void**)&self->cuGraphicsUnmapResources, "cuGraphicsUnmapResources" }, @@ -80,6 +82,7 @@ bool gsr_cuda_load(gsr_cuda *self, Display *display, bool do_overclock) { } if(self->do_overclock) { + assert(display); if(gsr_overclock_load(&self->overclock, display)) gsr_overclock_start(&self->overclock); else |