[16/30] libcamera: software_isp: egl: Move to GLES 3.0
diff mbox series

Message ID 20260618122245.946138-17-bryan.odonoghue@linaro.org
State RFC
Headers show
Series
  • RFC/RFT: gpuisp: Multipass with speed optimisations on top
Related show

Commit Message

Bryan O'Donoghue June 18, 2026, 12:22 p.m. UTC
To make textures of floats we need GLES 3.0.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 include/libcamera/internal/egl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Robert Mader June 23, 2026, 2:01 p.m. UTC | #1
On 18.06.26 14:22, Bryan O'Donoghue wrote:
> To make textures of floats we need GLES 3.0.
>
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
>   include/libcamera/internal/egl.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/libcamera/internal/egl.h b/include/libcamera/internal/egl.h
> index d88617afa..3956c6669 100644
> --- a/include/libcamera/internal/egl.h
> +++ b/include/libcamera/internal/egl.h
> @@ -26,7 +26,7 @@
>   #include <EGL/egl.h>
>   #include <EGL/eglext.h>
>   #define GL_GLEXT_PROTOTYPES
> -#include <GLES2/gl2.h>
> +#include <GLES3/gl32.h>
>   #include <GLES2/gl2ext.h>
>   
>   namespace libcamera {
If a 3.0 context becomes a requirement in later patches, then 
EGL_CONTEXT_MAJOR_VERSION (in initEGLContext()) should also be bumped to 
3 so GLES 2.0-only devices fall back to software.

Patch
diff mbox series

diff --git a/include/libcamera/internal/egl.h b/include/libcamera/internal/egl.h
index d88617afa..3956c6669 100644
--- a/include/libcamera/internal/egl.h
+++ b/include/libcamera/internal/egl.h
@@ -26,7 +26,7 @@ 
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
 #define GL_GLEXT_PROTOTYPES
-#include <GLES2/gl2.h>
+#include <GLES3/gl32.h>
 #include <GLES2/gl2ext.h>
 
 namespace libcamera {