Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with OpenGL ES #931

Open
Algorithm0 opened this issue Feb 18, 2025 · 0 comments
Open

Doesn't work with OpenGL ES #931

Algorithm0 opened this issue Feb 18, 2025 · 0 comments

Comments

@Algorithm0
Copy link

Algorithm0 commented Feb 18, 2025

From here on I will talk about how I tried to run in two containers: Ubuntu 22.04 and Ubuntu 24.04.

IMAGE=ubuntu:24.04
#IMAGE=ubuntu:22.04
docker run -it --name dev_test  -u root --net host --gpus all --runtime=nvidia -v /tmp/.X11-unix:/tmp/.X11-unix -e NVIDIA_DRIVER_CAPABILITIES=all -e DISPLAY=${DISPLAY}  ${IMAGE} /bin/bash

I also update the system and install the necessary packages in container.

export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get -y upgrade -y && apt install -y glmark2-es2 glmark2 mesa-utils

On both systems the command glxinfo | grep "OpenGL" output reads:

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 4070 Ti/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 565.77
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 565.77
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 565.77
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

The glmark2 benchmark is also fine (the window starts, the horses and cubes spin), the output is as follows:

Image

But the benchmark glmark2-es2 behavior on Ubuntu 24 is really bad:
Image
That is, I see a completely black screen, I see that software rendering is used instead of my video card. On Ubuntu 22, there is an image in the window, but it is still the same software rendering.
Maybe I am doing something wrong? And yes, I need OpenGL ES for my application.

I also tried this, but there were errors there too:

> __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json glmark2-es2
Error: eglGetDisplay() failed with error: 0x3000
Error: eglGetDisplay() failed with error: 0x3000
Error: main: Could not initialize canvas

Finally I ran on the host (I got the expected behavior):
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant