title: Onscreen EGL display using NVidia GPU
body: <p>I'm trying to use EGL to open an OpenGL context that draws directly on a display connected to an NVidia GPU on Linux.</p>
  
  <p>When opening a EGL display with <code>eglGetDisplay(EGL_DEFAULT_DISPLAY)</code>, it seems to create an offscreen rendering context.</p>
  
  <p>Using <code>eglGetPlatformDisplayEXT</code>, it does not find any displays.</p>
  
  <p>Is it possible to set it up such that when the program is launched without X11/Wayland (or another process accessing the GPU), it creates a OpenGL context that renders directly on the screen.</p>
  
  <p>Also, it is possible if X11 is set up to access only the primary GPU, make EGL render onto a screen connected to the secondary GPU.</p>
  
  <p>It should give an accelerated OpenGL context, which can then be shared with a CUDA context. The goal is to display an image generated by CUDA kernels as efficiently as possible, without passing through a windowing server.</p>