obs-studio/libobs-opengl
Kurt Kartaltepe 041fee0484 libobs-opengl: Accelerate dmabuf import
Previously we would actually initialize a texture memory that would then
also have to be deleted when we bound the EGLImage to the texture during
dmabuf import.

Instead simply do not create the dummy texture memory. One odd thing is
that we must still query the texture to ensure its initialized or
binding the EGLImage will not work. So we leave the TEXTURE_MAX_LEVEL
check.

This makes screencapture up to 100x faster on discrete intel cards and
likely has some performance benefit for amd/integrated cards. Without
this dmabufs are actually slower than shared memory for these intel
cards.
2023-02-12 19:07:05 -03:00
..
.gitignore first commit 2013-09-30 19:37:13 -07:00
CMakeLists.txt Drop GLX renderer 2022-05-24 14:31:48 -03:00
gl-cocoa.m libobs,libobs-opengl,obs-ffmpeg-mux: Calm deprecation warnings on *nix 2023-01-19 13:08:46 -05:00
gl-egl-common.c libobs-opengl: Accelerate dmabuf import 2023-02-12 19:07:05 -03:00
gl-egl-common.h libobs-opengl: Add create_texture_from_pixmap for EGL 2022-05-15 09:08:53 -03:00
gl-helpers.c libobs: Add support for volume textures 2019-12-15 14:38:26 -08:00
gl-helpers.h libobs-opengl: Fix border color support on GL textures 2022-01-12 06:35:16 -08:00
gl-indexbuffer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
gl-nix.c libobs-opengl: Drop gl pointers on device_leave_context 2023-01-14 15:33:18 -08:00
gl-nix.h libobs-opengl: Add create_texture_from_pixmap for EGL 2022-05-15 09:08:53 -03:00
gl-shader.c UI,libobs,libobs-opengl,obs-ffmpeg: Remove unneeded cast in switches 2023-01-16 11:52:26 +01:00
gl-shaderparser.c libobs-opengl: SRGB-safe GLSL path for raw loads 2021-01-19 12:24:36 -08:00
gl-shaderparser.h libobs-opengl: Add sincos to HLSL->GLSL transpile 2020-04-07 23:59:14 -07:00
gl-stagesurf.c Revert "libobs-opengl: Use PBO in device_stage_texture on macOS" 2022-01-01 18:38:33 -08:00
gl-subsystem.c libobs: Cleanup unused-parameters 2022-07-19 11:01:00 -04:00
gl-subsystem.h libobs/graphics: Add color space support 2022-03-23 22:35:26 -07:00
gl-texture2d.c libobs-opengl: Accelerate dmabuf import 2023-02-12 19:07:05 -03:00
gl-texture3d.c libobs-opengl: Fix volume texture leak 2020-01-04 01:28:16 -08:00
gl-texturecube.c libobs: Add support for volume textures 2019-12-15 14:38:26 -08:00
gl-vertexbuffer.c libobs-opengl: Empty VAO 2019-06-24 23:13:04 -05:00
gl-wayland-egl.c libobs-opengl: Replace OBS_UNUSED with UNUSED_PARAMETER 2022-07-20 08:22:08 +02:00
gl-wayland-egl.h libobs-opengl: Introduce an EGL/Wayland renderer 2021-02-09 09:39:17 -03:00
gl-windows.c libobs-d3d11,libobs-opengl,plugins: Remove unneeded cast in switches 2023-01-16 11:52:26 +01:00
gl-x11-egl.c libobs-opengl: Close display when destroying X11/EGL platform 2023-01-25 13:56:50 -05:00
gl-x11-egl.h libobs-opengl: Introduce the X11/EGL winsys 2021-02-01 19:03:14 -03:00
gl-zstencil.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00