opengl: move shader init from console-gl.c to shader.c

With the upcoming dmabuf support in qemu there will be more users of the
shaders than just console-gl.c.  So rename ConsoleGLState to
QemuGLShader, rename some functions too, move code from console-gl.c to
shaders.c.

No functional change.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20171010135453.6704-3-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann 2017-10-10 15:54:49 +02:00
parent 4133fa711f
commit 46e19e149f
12 changed files with 68 additions and 72 deletions

View file

@ -119,7 +119,7 @@ struct SimpleSpiceDisplay {
/* opengl rendering */
QEMUBH *gl_unblock_bh;
QEMUTimer *gl_unblock_timer;
ConsoleGLState *gls;
QemuGLShader *gls;
int gl_updates;
bool have_scanout;
bool have_surface;