VTK using on wayland

Hello everyone,

I’m new to VTK and I’m encountering an issue when trying to render CylinderExample

my embedded environment is: wayland with EGL

so I rebuild VTK 9.1.0 source code with these options

  1. VTK_USE_X=OFF
  2. VTK_OPENGL_HAS_EGL=ON
  3. VTK_OPENGL_USE_GLES=ON
  4. VTK_GROUP_ENABLE_Rendering=YES

but I got these error below:

2024-11-11 07:17:15.763 (   0.043s) [        8329A020]     vtkOpenGLState.cxx:68    WARN| Error in cache state for GL_DEPTH_WRITEMASK
2024-11-11 07:17:15.763 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:76    WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:83    WARN| Error in cache state for GL_BLEND
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:90    WARN| Error in cache state for GL_DEPTH_TEST
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:113   WARN| Error in cache state for GL_SCISSOR_TEST
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:144   WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:152   WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:159   WARN| Error in cache state for GL_CULL_FACE_MODE
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:166   WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:173   WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:180   WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:187   WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:194   WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:201   WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:15.764 (   0.044s) [        8329A020]     vtkOpenGLState.cxx:266   WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:15.766 (   0.046s) [        8329A020]     vtkOpenGLState.cxx:274   WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c78438 : vtkOpenGLState::vtkglPixelStorei(unsigned int, int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c52b20 : vtkOpenGLRenderWindow::OpenGLInitState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c52c2c : vtkOpenGLRenderWindow::OpenGLInit() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82cf5284 : vtkEGLRenderWindow::Initialize() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c554fc : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]

2024-11-11 07:17:16.096 (   0.376s) [        8329A020]     vtkOpenGLState.cxx:76    WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:16.096 (   0.376s) [        8329A020]     vtkOpenGLState.cxx:144   WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:16.096 (   0.376s) [        8329A020]     vtkOpenGLState.cxx:152   WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:16.096 (   0.376s) [        8329A020]     vtkOpenGLState.cxx:159   WARN| Error in cache state for GL_CULL_FACE_MODE
2024-11-11 07:17:16.096 (   0.376s) [        8329A020]     vtkOpenGLState.cxx:166   WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:16.096 (   0.376s) [        8329A020]     vtkOpenGLState.cxx:173   WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:16.096 (   0.376s) [        8329A020]     vtkOpenGLState.cxx:180   WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:16.096 (   0.376s) [        8329A020]     vtkOpenGLState.cxx:187   WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:16.096 (   0.376s) [        8329A020]     vtkOpenGLState.cxx:194   WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:16.096 (   0.377s) [        8329A020]     vtkOpenGLState.cxx:201   WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:16.096 (   0.377s) [        8329A020]     vtkOpenGLState.cxx:208   WARN| Error in cache state for GL_DRAW_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.096 (   0.377s) [        8329A020]     vtkOpenGLState.cxx:215   WARN| Error in cache state for GL_READ_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.096 (   0.377s) [        8329A020]     vtkOpenGLState.cxx:266   WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:16.098 (   0.378s) [        8329A020]     vtkOpenGLState.cxx:274   WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c78438 : vtkOpenGLState::vtkglPixelStorei(unsigned int, int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c52b40 : vtkOpenGLRenderWindow::OpenGLInitState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c52c2c : vtkOpenGLRenderWindow::OpenGLInit() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82cf5284 : vtkEGLRenderWindow::Initialize() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c554fc : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]

2024-11-11 07:17:16.098 (   0.378s) [        8329A020]     vtkOpenGLState.cxx:68    WARN| Error in cache state for GL_DEPTH_WRITEMASK
2024-11-11 07:17:16.098 (   0.378s) [        8329A020]     vtkOpenGLState.cxx:76    WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:16.098 (   0.378s) [        8329A020]     vtkOpenGLState.cxx:83    WARN| Error in cache state for GL_BLEND
2024-11-11 07:17:16.098 (   0.378s) [        8329A020]     vtkOpenGLState.cxx:90    WARN| Error in cache state for GL_DEPTH_TEST
2024-11-11 07:17:16.098 (   0.378s) [        8329A020]     vtkOpenGLState.cxx:97    WARN| Error in cache state for GL_CULL_FACE
2024-11-11 07:17:16.098 (   0.378s) [        8329A020]     vtkOpenGLState.cxx:113   WARN| Error in cache state for GL_SCISSOR_TEST
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:120   WARN| Error in cache state for GL_STENCIL_TEST
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:144   WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:152   WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:159   WARN| Error in cache state for GL_CULL_FACE_MODE
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:166   WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:173   WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:180   WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:187   WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:194   WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:201   WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:16.430 (   0.710s) [        8329A020]     vtkOpenGLState.cxx:208   WARN| Error in cache state for GL_DRAW_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.430 (   0.711s) [        8329A020]     vtkOpenGLState.cxx:215   WARN| Error in cache state for GL_READ_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.430 (   0.711s) [        8329A020]     vtkOpenGLState.cxx:252   WARN| Error in cache state for GL_READ_BUFFER
2024-11-11 07:17:16.430 (   0.711s) [        8329A020]     vtkOpenGLState.cxx:266   WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:16.431 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:274   WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c778f4 : vtkOpenGLState::SetEnumState(unsigned int, bool) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c55410 : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]

2024-11-11 07:17:16.432 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:68    WARN| Error in cache state for GL_DEPTH_WRITEMASK
2024-11-11 07:17:16.432 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:76    WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:16.432 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:90    WARN| Error in cache state for GL_DEPTH_TEST
2024-11-11 07:17:16.432 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:97    WARN| Error in cache state for GL_CULL_FACE
2024-11-11 07:17:16.432 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:113   WARN| Error in cache state for GL_SCISSOR_TEST
2024-11-11 07:17:16.432 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:120   WARN| Error in cache state for GL_STENCIL_TEST
2024-11-11 07:17:16.432 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:144   WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:16.432 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:152   WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:16.432 (   0.712s) [        8329A020]     vtkOpenGLState.cxx:159   WARN| Error in cache state for GL_CULL_FACE_MODE
2024-11-11 07:17:16.763 (   1.043s) [        8329A020]     vtkOpenGLState.cxx:166   WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:16.763 (   1.043s) [        8329A020]     vtkOpenGLState.cxx:173   WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:16.763 (   1.043s) [        8329A020]     vtkOpenGLState.cxx:180   WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:16.763 (   1.044s) [        8329A020]     vtkOpenGLState.cxx:187   WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:16.763 (   1.044s) [        8329A020]     vtkOpenGLState.cxx:194   WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:16.763 (   1.044s) [        8329A020]     vtkOpenGLState.cxx:201   WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:16.763 (   1.044s) [        8329A020]     vtkOpenGLState.cxx:208   WARN| Error in cache state for GL_DRAW_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.763 (   1.044s) [        8329A020]     vtkOpenGLState.cxx:215   WARN| Error in cache state for GL_READ_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.763 (   1.044s) [        8329A020]     vtkOpenGLState.cxx:252   WARN| Error in cache state for GL_READ_BUFFER
2024-11-11 07:17:16.763 (   1.044s) [        8329A020]     vtkOpenGLState.cxx:266   WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:16.764 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:274   WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c76f80 : vtkOpenGLState::vtkglBlendFuncSeparate(unsigned int, unsigned int, unsigned int, unsigned int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c5543c : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]

2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:68    WARN| Error in cache state for GL_DEPTH_WRITEMASK
2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:76    WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:90    WARN| Error in cache state for GL_DEPTH_TEST
2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:97    WARN| Error in cache state for GL_CULL_FACE
2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:113   WARN| Error in cache state for GL_SCISSOR_TEST
2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:120   WARN| Error in cache state for GL_STENCIL_TEST
2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:144   WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:152   WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:159   WARN| Error in cache state for GL_CULL_FACE_MODE
20[ 2014.837072] audit: type=1701 audit(1731309437.098:8): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=9427 comm="a.out" exe="/run/media/sda1/a.out" sig=6 res=1
24-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:166   WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:16.765 (   1.045s) [        8329A020]     vtkOpenGLState.cxx:173   WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:17.097 (   1.377s) [        8329A020]     vtkOpenGLState.cxx:180   WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:17.097 (   1.377s) [        8329A020]     vtkOpenGLState.cxx:187   WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:17.097 (   1.377s) [        8329A020]     vtkOpenGLState.cxx:194   WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:17.097 (   1.377s) [        8329A020]     vtkOpenGLState.cxx:201   WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:17.097 (   1.377s) [        8329A020]     vtkOpenGLState.cxx:208   WARN| Error in cache state for GL_DRAW_FRAMEBUFFER_BINDING
2024-11-11 07:17:17.097 (   1.377s) [        8329A020]     vtkOpenGLState.cxx:215   WARN| Error in cache state for GL_READ_FRAMEBUFFER_BINDING
2024-11-11 07:17:17.097 (   1.377s) [        8329A020]     vtkOpenGLState.cxx:252   WARN| Error in cache state for GL_READ_BUFFER
2024-11-11 07:17:17.097 (   1.377s) [        8329A020]     vtkOpenGLState.cxx:266   WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:17.098 (   1.378s) [        8329A020]     vtkOpenGLState.cxx:274   WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c75764 : vtkOpenGLState::vtkglBindFramebuffer(unsigned int, unsigned int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82bdffcc : vtkOpenGLFramebufferObject::PopulateFramebuffer(int, int, bool, int, int, bool, int, int, bool) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c54e08 : vtkOpenGLRenderWindow::CreateFramebuffers(int, int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c55464 : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]

2024-11-11 07:17:17.098 (   1.379s) [        8329A020]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
a.out: /usr/src/debug/vtk/9.1.0-r0/VTK-9.1.0/Rendering/OpenGL2/vtkTextureObject.cxx:390: void vtkTextureObject::Bind(): Assertion `this->Handle' failed.
Aborted (core dumped)

Can you try vtk 9.4.0 instead with only VTK_USE_X=OFF option? https://gitlab.kitware.com/vtk/vtk/-/tree/v9.4.0.rc3?ref_type=tags

What GPU is used in your environment? Can you run eglinfo successfully and show the output?

@jaswantp my system is am62xx SoC

root@am62xx-evm:/usr/lib# eglinfo
EGL client extensions string:
    EGL_EXT_client_extensions EGL_EXT_device_base
    EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base
    EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    EGL_EXT_platform_device EGL_EXT_platform_wayland
    EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11
    EGL_EXT_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm
    EGL_MESA_platform_surfaceless

GBM platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL_ES
EGL extensions string:
    EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
    EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
    EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_image_gl_colorspace
    EGL_EXT_yuv_surface EGL_IMG_context_priority EGL_KHR_cl_event2
    EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_fence_sync
    EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace
    EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
    EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image
    EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
    EGL_KHR_no_config_context EGL_KHR_partial_update
    EGL_KHR_reusable_sync EGL_KHR_surfaceless_context
    EGL_EXT_pixel_format_float EGL_KHR_wait_sync
    EGL_MESA_configless_context EGL_MESA_drm_image
    EGL_MESA_image_dma_buf_export EGL_MESA_query_driver
    EGL_WL_bind_wayland_display EGL_IMG_cl_image
Configurations:
     bf lv colorbuffer dp st  ms    vis   cav bi  renderable  supported
  id sz  l  r  g  b  a th cl ns b    id   eat nd gl es es2 vg surfaces
---------------------------------------------------------------------
0x01 32  0  8  8  8  8  0  0  0 0 0x34325241--      a     y  y     win,pb
0x02 32  0  8  8  8  8  0  0  2 1 0x34325241--      a     y  y     win,pb
0x03 32  0  8  8  8  8  0  0  4 1 0x34325241--      a     y  y     win,pb
0x04 32  0  8  8  8  8 24  8  0 0 0x34325241--      a     y  y     win,pb
0x05 32  0  8  8  8  8 24  8  2 1 0x34325241--      a     y  y     win,pb
0x06 32  0  8  8  8  8 24  8  4 1 0x34325241--      a     y  y     win,pb
0x07 24  0  8  8  8  0  0  0  0 0 0x34325258--      y     y  y     win,pb
0x08 24  0  8  8  8  0  0  0  2 1 0x34325258--      y     y  y     win,pb
0x09 24  0  8  8  8  0  0  0  4 1 0x34325258--      y     y  y     win,pb
0x0a 24  0  8  8  8  0 24  8  0 0 0x34325258--      y     y  y     win,pb
0x0b 24  0  8  8  8  0 24  8  2 1 0x34325258--      y     y  y     win,pb
0x0c 24  0  8  8  8  0 24  8  4 1 0x34325258--      y     y  y     win,pb
0x0d 16  0  5  6  5  0  0  0  0 0 0x36314752--      y     y  y     win,pb
0x0e 16  0  5  6  5  0  0  0  2 1 0x36314752--      y     y  y     win,pb
0x0f 16  0  5  6  5  0  0  0  4 1 0x36314752--      y     y  y     win,pb
0x10 16  0  5  6  5  0 24  8  0 0 0x36314752--      y     y  y     win,pb
0x11 16  0  5  6  5  0 24  8  2 1 0x36314752--      y     y  y     win,pb
0x12 16  0  5  6  5  0 24  8  4 1 0x36314752--      y     y  y     win,pb

Wayland platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL_ES
EGL extensions string:
    EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
    EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
    EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_image_gl_colorspace
    EGL_EXT_present_opaque EGL_EXT_swap_buffers_with_damage
    EGL_EXT_yuv_surface EGL_IMG_context_priority EGL_KHR_cl_event2
    EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_fence_sync
    EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace
    EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
    EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image
    EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_partial_update
    EGL_KHR_reusable_sync EGL_KHR_surfaceless_context
    EGL_KHR_swap_buffers_with_damage EGL_EXT_pixel_format_float
    EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image
    EGL_MESA_image_dma_buf_export EGL_MESA_query_driver
    EGL_WL_bind_wayland_display EGL_WL_create_wayland_buffer_from_image
    EGL_IMG_cl_image
Configurations:
     bf lv colorbuffer dp st  ms    vis   cav bi  renderable  supported
  id sz  l  r  g  b  a th cl ns b    id   eat nd gl es es2 vg surfaces
---------------------------------------------------------------------
0x01 32  0  8  8  8  8  0  0  0 0 0x00--      a     y  y     win,pb
0x02 32  0  8  8  8  8  0  0  2 1 0x00--      a     y  y     win,pb
0x03 32  0  8  8  8  8  0  0  4 1 0x00--      a     y  y     win,pb
0x04 32  0  8  8  8  8 24  8  0 0 0x00--      a     y  y     win,pb
0x05 32  0  8  8  8  8 24  8  2 1 0x00--      a     y  y     win,pb
0x06 32  0  8  8  8  8 24  8  4 1 0x00--      a     y  y     win,pb
0x07 24  0  8  8  8  0  0  0  0 0 0x00--      y     y  y     win,pb
0x08 24  0  8  8  8  0  0  0  2 1 0x00--      y     y  y     win,pb
0x09 24  0  8  8  8  0  0  0  4 1 0x00--      y     y  y     win,pb
0x0a 24  0  8  8  8  0 24  8  0 0 0x00--      y     y  y     win,pb
0x0b 24  0  8  8  8  0 24  8  2 1 0x00--      y     y  y     win,pb
0x0c 24  0  8  8  8  0 24  8  4 1 0x00--      y     y  y     win,pb
0x0d 16  0  5  6  5  0  0  0  0 0 0x00--      y     y  y     win,pb
0x0e 16  0  5  6  5  0  0  0  2 1 0x00--      y     y  y     win,pb
0x0f 16  0  5  6  5  0  0  0  4 1 0x00--      y     y  y     win,pb
0x10 16  0  5  6  5  0 24  8  0 0 0x00--      y     y  y     win,pb
0x11 16  0  5  6  5  0 24  8  2 1 0x00--      y     y  y     win,pb
0x12 16  0  5  6  5  0 24  8  4 1 0x00--      y     y  y     win,pb
0x13  8  0  0  0  0  0  0  0  0 0 0x00--                     win
0x14  8  0  0  0  0  0  0  0  2 1 0x00--                     win
0x15  8  0  0  0  0  0  0  0  4 1 0x00--                     win
0x16  8  0  0  0  0  0 24  8  0 0 0x00--                     win
0x17  8  0  0  0  0  0 24  8  2 1 0x00--                     win
0x18  8  0  0  0  0  0 24  8  4 1 0x00--                     win
0x19  8  0  0  0  0  0  0  0  0 0 0x00--                     win
0x1a  8  0  0  0  0  0  0  0  2 1 0x00--                     win
0x1b  8  0  0  0  0  0  0  0  4 1 0x00--                     win
0x1c  8  0  0  0  0  0 24  8  0 0 0x00--                     win
0x1d  8  0  0  0  0  0 24  8  2 1 0x00--                     win
0x1e  8  0  0  0  0  0 24  8  4 1 0x00--                     win
0x1f  8  0  0  0  0  0  0  0  0 0 0x00--                     win
0x20  8  0  0  0  0  0  0  0  2 1 0x00--                     win
0x21  8  0  0  0  0  0  0  0  4 1 0x00--                     win
0x22  8  0  0  0  0  0 24  8  0 0 0x00--                     win
0x23  8  0  0  0  0  0 24  8  2 1 0x00--                     win
0x24  8  0  0  0  0  0 24  8  4 1 0x00--                     win
0x25  8  0  0  0  0  0  0  0  0 0 0x00--                     win
0x26  8  0  0  0  0  0  0  0  2 1 0x00--                     win
0x27  8  0  0  0  0  0  0  0  4 1 0x00--                     win
0x28  8  0  0  0  0  0 24  8  0 0 0x00--                     win
0x29  8  0  0  0  0  0 24  8  2 1 0x00--                     win
0x2a  8  0  0  0  0  0 24  8  4 1 0x00--                     win
0x2b  8  0  0  0  0  0  0  0  0 0 0x00--                     win
0x2c  8  0  0  0  0  0  0  0  2 1 0x00--                     win
0x2d  8  0  0  0  0  0  0  0  4 1 0x00--                     win
0x2e  8  0  0  0  0  0 24  8  0 0 0x00--                     win
0x2f  8  0  0  0  0  0 24  8  2 1 0x00--                     win
0x30  8  0  0  0  0  0 24  8  4 1 0x00--                     win
0x31  8  0  0  0  0  0  0  0  0 0 0x00--                     win
0x32  8  0  0  0  0  0  0  0  2 1 0x00--                     win
0x33  8  0  0  0  0  0  0  0  4 1 0x00--                     win
0x34  8  0  0  0  0  0 24  8  0 0 0x00--                     win
0x35  8  0  0  0  0  0 24  8  2 1 0x00--                     win
0x36  8  0  0  0  0  0 24  8  4 1 0x00--                     win
0x37  8  0  0  0  0  0  0  0  0 0 0x00--                     win
0x38  8  0  0  0  0  0  0  0  2 1 0x00--                     win
0x39  8  0  0  0  0  0  0  0  4 1 0x00--                     win
0x3a  8  0  0  0  0  0 24  8  0 0 0x00--                     win
0x3b  8  0  0  0  0  0 24  8  2 1 0x00--                     win
0x3c  8  0  0  0  0  0 24  8  4 1 0x00--                     win
0x3d  8  0  0  0  0  0  0  0  0 0 0x00--                     win
0x3e  8  0  0  0  0  0  0  0  2 1 0x00--                     win
0x3f  8  0  0  0  0  0  0  0  4 1 0x00--                     win
0x40  8  0  0  0  0  0 24  8  0 0 0x00--                     win
0x41  8  0  0  0  0  0 24  8  2 1 0x00--                     win
0x42  8  0  0  0  0  0 24  8  4 1 0x00--                     win

X11 platform:
eglinfo: eglInitialize failed

Device platform:
eglinfo: eglInitialize failed

@jaswantp I have a question!!

Does VTK only support offscreen rendering with the option VTK_OPENGL_HAS_EGL=ON ?
which means if my system only have EGL, I can only get the “static images” not the “interactive windows”?

The VTK EGL integration supports interactive windows only on Android. On all other platforms, it renders to an offscreen buffer. Although, the implementation can be updated to do onscreen rendering with EGL on desktop. It is actually quite simple to do it. So far, there has been no interest from our existing customers. If you’d like this feature in VTK, don’t hesitate to contact Kitware to get it done!