Home
last modified time | relevance | path

Searched refs:texture (Results 1 – 15 of 15) sorted by relevance

/qemu/ui/
H A Dconsole-gl.c52 if (surface->texture) { in surface_gl_create_texture()
75 glGenTextures(1, &surface->texture); in surface_gl_create_texture()
77 glBindTexture(GL_TEXTURE_2D, surface->texture); in surface_gl_create_texture()
107 if (surface->texture) { in surface_gl_update_texture()
108 glBindTexture(GL_TEXTURE_2D, surface->texture); in surface_gl_update_texture()
134 if (!surface || !surface->texture) { in surface_gl_destroy_texture()
137 glDeleteTextures(1, &surface->texture); in surface_gl_destroy_texture()
138 surface->texture = 0; in surface_gl_destroy_texture()
H A Degl-helpers.c80 glDeleteTextures(1, &fb->texture); in egl_fb_delete_texture()
95 fb->texture = 0; in egl_fb_destroy()
107 GLuint texture, bool delete) in egl_fb_setup_for_tex() argument
113 fb->texture = texture; in egl_fb_setup_for_tex()
121 GL_TEXTURE_2D, fb->texture, 0); in egl_fb_setup_for_tex()
126 GLuint texture; in egl_fb_setup_new_tex() local
128 glGenTextures(1, &texture); in egl_fb_setup_new_tex()
129 glBindTexture(GL_TEXTURE_2D, texture); in egl_fb_setup_new_tex()
133 egl_fb_setup_for_tex(fb, width, height, texture, tru in egl_fb_setup_new_tex()
[all...]
H A Dsdl2-2d.c40 if (!scon->texture) { in sdl2_2d_update()
51 SDL_UpdateTexture(scon->texture, &rect, in sdl2_2d_update()
55 SDL_RenderCopy(scon->real_renderer, scon->texture, NULL, NULL); in sdl2_2d_update()
70 if (scon->texture) { in sdl2_2d_switch()
71 SDL_DestroyTexture(scon->texture); in sdl2_2d_switch()
72 scon->texture = NULL; in sdl2_2d_switch()
120 scon->texture = SDL_CreateTexture(scon->real_renderer, format, in sdl2_2d_switch()
H A Degl-headless.c88 uint32_t width, height, texture; in egl_scanout_dmabuf()
91 texture = qemu_dmabuf_get_texture(dmabuf); in egl_scanout_dmabuf()
92 if (!texture) { in egl_scanout_dmabuf()
99 egl_scanout_texture(dcl, texture, false, width, height, 0, 0, in egl_cursor_dmabuf()
107 uint32_t width, height, texture; in egl_cursor_dmabuf()
112 texture = qemu_dmabuf_get_texture(dmabuf); in egl_cursor_dmabuf()
113 if (!texture) { in egl_cursor_dmabuf()
119 egl_fb_setup_for_tex(&edpy->cursor_fb, width, height, texture, false); in egl_release_dmabuf()
148 if (!edpy->guest_fb.texture || !edpy->ds) { in egl_scanout_flush()
153 if (edpy->cursor_fb.texture) { in egl_scanout_flush()
[all...]
H A Dgtk-egl.c271 uint32_t x, y, width, height, backing_width, backing_height, texture; in gd_egl_scanout_dmabuf()
278 texture = qemu_dmabuf_get_texture(dmabuf); in gd_egl_scanout_dmabuf()
279 if (!texture) { in gd_egl_scanout_dmabuf()
291 gd_egl_scanout_texture(dcl, texture, y0_top, backing_width, backing_height, in gd_egl_cursor_dmabuf()
306 uint32_t backing_width, backing_height, texture; in gd_egl_cursor_dmabuf()
310 texture = qemu_dmabuf_get_texture(dmabuf); in gd_egl_cursor_position()
311 if (!texture) { in gd_egl_cursor_position()
318 texture, false); in gd_egl_scanout_flush()
356 if (vc->gfx.cursor_fb.texture) { in gd_egl_scanout_flush()
H A Dconsole.c288 con->scanout.texture.backing_id, in displaychangelistener_display_console()
289 con->scanout.texture.backing_y_0_top, in displaychangelistener_display_console()
290 con->scanout.texture.backing_width, in displaychangelistener_display_console()
291 con->scanout.texture.backing_height, in displaychangelistener_display_console()
292 con->scanout.texture.x, in displaychangelistener_display_console()
293 con->scanout.texture.y, in displaychangelistener_display_console()
294 con->scanout.texture.width, in displaychangelistener_display_console()
295 con->scanout.texture.height, in displaychangelistener_display_console()
296 con->scanout.texture.d3d_tex2d); in displaychangelistener_display_console()
1066 con->scanout.texture in dpy_gl_scanout_texture()
[all...]
H A Dspice-display.c887 fd = egl_get_fd_for_texture(ssd->ds->texture, in spice_gl_switch()
949 fprintf(stderr, "%s: failed to get fd for texture\n", __func__); in qemu_spice_gl_scanout_texture()
979 uint32_t width, height, texture; in qemu_spice_gl_cursor_dmabuf()
988 texture = qemu_dmabuf_get_texture(dmabuf); in qemu_spice_gl_cursor_dmabuf()
989 if (!texture) { in qemu_spice_gl_cursor_dmabuf()
994 egl_fb_setup_for_tex(&ssd->cursor_fb, width, height, texture, false); in qemu_spice_gl_cursor_dmabuf()
1032 uint32_t width, height, texture; in qemu_spice_gl_update()
1038 if (ssd->cursor_fb.texture) { in qemu_spice_gl_update()
1054 texture = qemu_dmabuf_get_texture(dmabuf); in qemu_spice_gl_update()
1055 if (!texture) { in qemu_spice_gl_update()
[all...]
H A Dgtk-gl-area.c306 uint32_t x, y, width, height, backing_width, backing_height, texture; in gd_gl_area_scanout_dmabuf()
311 texture = qemu_dmabuf_get_texture(dmabuf); in gd_gl_area_scanout_dmabuf()
312 if (!texture) { in gd_gl_area_scanout_dmabuf()
324 gd_gl_area_scanout_texture(dcl, texture, y0_top,
H A Ddbus-listener.c165 error_setg_win32(errp, GetLastError(), "failed to acquire texture mutex"); in d3d_texture2d_acquire0()
190 error_setg_win32(errp, GetLastError(), "failed to release texture mutex"); in d3d_texture2d_release0()
454 error_report("%s: failed to get fd for texture", __func__); in dbus_scanout_texture()
491 uint32_t width, height, texture; in dbus_cursor_dmabuf()
501 texture = qemu_dmabuf_get_texture(dmabuf); in dbus_cursor_dmabuf()
502 if (!texture) { in dbus_cursor_dmabuf()
509 egl_fb_setup_for_tex(&cursor_fb, width, height, texture, false); in dbus_cursor_dmabuf()
713 dbus_scanout_texture(&ddl->dcl, ddl->ds->texture, false,
/qemu/ui/shader/
H A Dmeson.build2 ['texture-blit', 'frag'],
3 ['texture-blit', 'vert'],
4 ['texture-blit-flip', 'vert'],
H A Dtexture-blit.frag8 out_frag_color = texture(image, ex_tex_coord);
/qemu/include/ui/
H A Degl-helpers.h20 GLuint texture; member
31 GLuint texture, bool delete);
H A Dsurface.h24 GLuint texture; member
H A Dsdl2.h34 SDL_Texture *texture; member
H A Dconsole.h200 ScanoutTexture texture;
195 uint32_t texture; global() member
218 ScanoutTexture texture; global() member