aboutsummaryrefslogtreecommitdiff
path: root/src/egl.c
diff options
context:
space:
mode:
authorSteam Deck User <deck@archlinux.steamdeck>2023-04-01 15:14:36 +0200
committerSteam Deck User <deck@archlinux.steamdeck>2023-04-01 16:29:24 +0200
commit2f67083915ccb16727d00d49917a520d0962fb8c (patch)
tree6bc13adc7819305f03aa3e68f904d9e19e4b1248 /src/egl.c
parent162eac8c2f460ac8231696b511785d69bb7c97ff (diff)
Use vaapi to do rgb->yuv420p color conversion
Enable window capture for amd/intel. Properly check if h264/hevc is supported on amd/intel before using codec.
Diffstat (limited to 'src/egl.c')
-rw-r--r--src/egl.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/src/egl.c b/src/egl.c
index 14ee8d9..b991ff4 100644
--- a/src/egl.c
+++ b/src/egl.c
@@ -110,6 +110,8 @@ static bool gsr_egl_load_egl(gsr_egl *self, void *library) {
}
static bool gsr_egl_proc_load_egl(gsr_egl *self) {
+ self->eglExportDMABUFImageQueryMESA = self->eglGetProcAddress("eglExportDMABUFImageQueryMESA");
+ self->eglExportDMABUFImageMESA = self->eglGetProcAddress("eglExportDMABUFImageMESA");
self->glEGLImageTargetTexture2DOES = self->eglGetProcAddress("glEGLImageTargetTexture2DOES");
if(!self->glEGLImageTargetTexture2DOES) {
@@ -134,34 +136,6 @@ static bool gsr_egl_load_gl(gsr_egl *self, void *library) {
{ (void**)&self->glTexImage2D, "glTexImage2D" },
{ (void**)&self->glCopyImageSubData, "glCopyImageSubData" },
{ (void**)&self->glClearTexImage, "glClearTexImage" },
- { (void**)&self->glGenFramebuffers, "glGenFramebuffers" },
- { (void**)&self->glBindFramebuffer, "glBindFramebuffer" },
- { (void**)&self->glViewport, "glViewport" },
- { (void**)&self->glFramebufferTexture2D, "glFramebufferTexture2D" },
- { (void**)&self->glDrawBuffers, "glDrawBuffers" },
- { (void**)&self->glCheckFramebufferStatus, "glCheckFramebufferStatus" },
- { (void**)&self->glBindBuffer, "glBindBuffer" },
- { (void**)&self->glGenBuffers, "glGenBuffers" },
- { (void**)&self->glBufferData, "glBufferData" },
- { (void**)&self->glGenVertexArrays, "glGenVertexArrays" },
- { (void**)&self->glBindVertexArray, "glBindVertexArray" },
- { (void**)&self->glCreateProgram, "glCreateProgram" },
- { (void**)&self->glCreateShader, "glCreateShader" },
- { (void**)&self->glAttachShader, "glAttachShader" },
- { (void**)&self->glBindAttribLocation, "glBindAttribLocation" },
- { (void**)&self->glCompileShader, "glCompileShader" },
- { (void**)&self->glLinkProgram, "glLinkProgram" },
- { (void**)&self->glShaderSource, "glShaderSource" },
- { (void**)&self->glUseProgram, "glUseProgram" },
- { (void**)&self->glGetProgramInfoLog, "glGetProgramInfoLog" },
- { (void**)&self->glGetShaderiv, "glGetShaderiv" },
- { (void**)&self->glGetShaderInfoLog, "glGetShaderInfoLog" },
- { (void**)&self->glDeleteProgram, "glDeleteProgram" },
- { (void**)&self->glDeleteShader, "glDeleteShader" },
- { (void**)&self->glGetProgramiv, "glGetProgramiv" },
- { (void**)&self->glVertexAttribPointer, "glVertexAttribPointer" },
- { (void**)&self->glEnableVertexAttribArray, "glEnableVertexAttribArray" },
- { (void**)&self->glDrawArrays, "glDrawArrays" },
{ NULL, NULL }
};