Home
last modified time | relevance | path

Searched refs:gls (Results 1 – 16 of 16) sorted by relevance

/qemu/ui/
H A Dshader.c75 ? gls->texture_blit_flip_prog in qemu_gl_run_texture_blit()
76 : gls->texture_blit_prog); in qemu_gl_run_texture_blit()
77 glBindVertexArray(gls->texture_blit_vao); in qemu_gl_run_texture_blit()
160 if (!gls->texture_blit_prog || !gls->texture_blit_flip_prog) { in qemu_gl_init_shader()
164 gls->texture_blit_vao = in qemu_gl_init_shader()
167 return gls; in qemu_gl_init_shader()
170 void qemu_gl_fini_shader(QemuGLShader *gls) in qemu_gl_fini_shader() argument
172 if (!gls) { in qemu_gl_fini_shader()
175 glDeleteProgram(gls->texture_blit_prog); in qemu_gl_fini_shader()
177 glDeleteProgram(gls->texture_blit_vao); in qemu_gl_fini_shader()
[all …]
H A Dconsole-gl.c46 void surface_gl_create_texture(QemuGLShader *gls, in surface_gl_create_texture() argument
49 assert(gls); in surface_gl_create_texture()
99 void surface_gl_update_texture(QemuGLShader *gls, in surface_gl_update_texture() argument
105 assert(gls); in surface_gl_update_texture()
120 void surface_gl_render_texture(QemuGLShader *gls, in surface_gl_render_texture() argument
123 assert(gls); in surface_gl_render_texture()
128 qemu_gl_run_texture_blit(gls, false); in surface_gl_render_texture()
131 void surface_gl_destroy_texture(QemuGLShader *gls, in surface_gl_destroy_texture() argument
141 void surface_gl_setup_viewport(QemuGLShader *gls, in surface_gl_setup_viewport() argument
148 assert(gls); in surface_gl_setup_viewport()
H A Dgtk-gl-area.c32 surface_gl_destroy_texture(vc->gfx.gls, vc->gfx.ds); in gtk_gl_area_set_scanout_mode()
33 surface_gl_create_texture(vc->gfx.gls, vc->gfx.ds); in gtk_gl_area_set_scanout_mode()
47 if (!vc->gfx.gls) { in gd_gl_area_draw()
104 surface_gl_setup_viewport(vc->gfx.gls, vc->gfx.ds, ww, wh); in gd_gl_area_draw()
105 surface_gl_render_texture(vc->gfx.gls, vc->gfx.ds); in gd_gl_area_draw()
114 if (!vc->gfx.gls || !vc->gfx.ds) { in gd_gl_area_update()
119 surface_gl_update_texture(vc->gfx.gls, vc->gfx.ds, x, y, w, h); in gd_gl_area_update()
136 if (!vc->gfx.gls) { in gd_gl_area_refresh()
141 vc->gfx.gls = qemu_gl_init_shader(); in gd_gl_area_refresh()
143 surface_gl_create_texture(vc->gfx.gls, v in gd_gl_area_refresh()
[all...]
H A Dsdl2-gl.c43 surface_gl_destroy_texture(scon->gls, scon->surface); in sdl2_set_scanout_mode()
44 surface_gl_create_texture(scon->gls, scon->surface); in sdl2_set_scanout_mode()
57 surface_gl_setup_viewport(scon->gls, scon->surface, ww, wh); in sdl2_gl_render_surface()
59 surface_gl_render_texture(scon->gls, scon->surface); in sdl2_gl_render_surface()
75 surface_gl_update_texture(scon->gls, scon->surface, x, y, w, h); in sdl2_gl_update()
88 surface_gl_destroy_texture(scon->gls, scon->surface); in sdl2_gl_switch()
93 qemu_gl_fini_shader(scon->gls); in sdl2_gl_switch()
94 scon->gls = NULL; in sdl2_gl_switch()
101 scon->gls = qemu_gl_init_shader(); in sdl2_gl_switch()
108 surface_gl_create_texture(scon->gls, scon->surface); in sdl2_gl_switch()
H A Dgtk-egl.c39 surface_gl_destroy_texture(vc->gfx.gls, vc->gfx.ds); in gtk_egl_set_scanout_mode()
40 surface_gl_create_texture(vc->gfx.gls, vc->gfx.ds); in gtk_egl_set_scanout_mode()
75 if (!vc->gfx.gls) { in gd_egl_draw()
118 surface_gl_setup_viewport(vc->gfx.gls, vc->gfx.ds, ww, wh); in gd_egl_draw()
119 surface_gl_render_texture(vc->gfx.gls, vc->gfx.ds); in gd_egl_draw()
135 if (!vc->gfx.gls || !vc->gfx.ds) { in gd_egl_update()
141 surface_gl_update_texture(vc->gfx.gls, vc->gfx.ds, x, y, w, h); in gd_egl_update()
165 vc->gfx.gls = qemu_gl_init_shader(); in gd_egl_refresh()
167 surface_gl_destroy_texture(vc->gfx.gls, vc->gfx.ds); in gd_egl_refresh()
168 surface_gl_create_texture(vc->gfx.gls, v in gd_egl_refresh()
[all...]
H A Degl-headless.c13 QemuGLShader *gls; member
155 egl_texture_blit(edpy->gls, &edpy->blit_fb, &edpy->guest_fb, in egl_scanout_flush()
157 egl_texture_blend(edpy->gls, &edpy->blit_fb, &edpy->cursor_fb, in egl_scanout_flush()
236 edpy->gls = qemu_gl_init_shader();
H A Ddbus.c67 surface_gl_create_texture(ctx->gls, surface); in dbus_create_texture()
73 surface_gl_destroy_texture(ctx->gls, surface); in dbus_destroy_texture()
80 surface_gl_update_texture(ctx->gls, surface, x, y, w, h); in dbus_update_texture()
124 dd->glctx.gls = qemu_gl_init_shader(); in dbus_display_init()
164 g_clear_pointer(&dd->glctx.gls, qemu_gl_fini_shader); in dbus_display_finalize()
H A Degl-helpers.c189 void egl_texture_blit(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool flip) in egl_texture_blit() argument
195 qemu_gl_run_texture_blit(gls, flip); in egl_texture_blit()
198 void egl_texture_blend(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool flip, in egl_texture_blend() argument
213 qemu_gl_run_texture_blit(gls, flip); in egl_texture_blend()
H A Dspice-display.c870 surface_gl_update_texture(ssd->gls, ssd->ds, x, y, w, h); in spice_gl_update()
882 surface_gl_destroy_texture(ssd->gls, ssd->ds); in spice_gl_switch()
886 surface_gl_create_texture(ssd->gls, ssd->ds); in spice_gl_switch()
891 surface_gl_destroy_texture(ssd->gls, ssd->ds); in spice_gl_switch()
1098 egl_texture_blit(ssd->gls, &ssd->blit_fb, &ssd->guest_fb, in qemu_spice_gl_update()
1100 egl_texture_blend(ssd->gls, &ssd->blit_fb, &ssd->cursor_fb, in qemu_spice_gl_update()
1160 ssd->gls = qemu_gl_init_shader(); in qemu_spice_display_init_one()
H A Dgtk.c348 if (vc->gfx.gls && gtk_use_gl_area) { in gd_update_full_redraw()
763 if (vc->gfx.gls) { in gd_render_event()
811 if (vc->gfx.gls) { in gd_draw_event()
/qemu/include/ui/
H A Dshader.h8 void qemu_gl_run_texture_blit(QemuGLShader *gls, bool flip);
11 void qemu_gl_fini_shader(QemuGLShader *gls);
H A Dconsole.h303 QemuGLShader *gls; /* optional shared shader */
427 void surface_gl_create_texture(QemuGLShader *gls,
429 void surface_gl_update_texture(QemuGLShader *gls,
432 void surface_gl_render_texture(QemuGLShader *gls,
434 void surface_gl_destroy_texture(QemuGLShader *gls,
436 void surface_gl_setup_viewport(QemuGLShader *gls,
321 QemuGLShader *gls; /* optional shared shader */ global() member
H A Degl-helpers.h37 void egl_texture_blit(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool flip);
38 void egl_texture_blend(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool flip,
H A Dsdl2.h48 QemuGLShader *gls; member
H A Dspice-display.h123 QemuGLShader *gls; member
H A Dgtk.h47 QemuGLShader *gls; member