| /openbmc/qemu/ui/ |
| H A D | console-gl.c | 48 DisplaySurface *surface) in surface_gl_create_texture() argument 51 assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface))); in surface_gl_create_texture() 53 if (surface->texture) { in surface_gl_create_texture() 57 switch (surface_format(surface)) { in surface_gl_create_texture() 60 surface->glformat = GL_BGRA_EXT; in surface_gl_create_texture() 61 surface->gltype = GL_UNSIGNED_BYTE; in surface_gl_create_texture() 65 surface->glformat = GL_RGBA; in surface_gl_create_texture() 66 surface->gltype = GL_UNSIGNED_BYTE; in surface_gl_create_texture() 69 surface->glformat = GL_RGB; in surface_gl_create_texture() 70 surface->gltype = GL_UNSIGNED_SHORT_5_6_5; in surface_gl_create_texture() [all …]
|
| H A D | console.c | 239 static void dpy_gfx_create_texture(QemuConsole *con, DisplaySurface *surface) in dpy_gfx_create_texture() argument 242 con->gl->ops->dpy_gl_ctx_create_texture(con->gl, surface); in dpy_gfx_create_texture() 246 static void dpy_gfx_destroy_texture(QemuConsole *con, DisplaySurface *surface) in dpy_gfx_destroy_texture() argument 249 con->gl->ops->dpy_gl_ctx_destroy_texture(con->gl, surface); in dpy_gfx_destroy_texture() 253 static void dpy_gfx_update_texture(QemuConsole *con, DisplaySurface *surface, in dpy_gfx_update_texture() argument 257 con->gl->ops->dpy_gl_ctx_update_texture(con->gl, surface, x, y, w, h); in dpy_gfx_update_texture() 280 dpy_gfx_create_texture(con, con->surface); in displaychangelistener_display_console() 281 displaychangelistener_gfx_switch(dcl, con->surface, in displaychangelistener_display_console() 398 g_clear_pointer(&c->surface, qemu_free_displaysurface); in qemu_console_finalize() 456 void qemu_displaysurface_set_share_handle(DisplaySurface *surface, in qemu_displaysurface_set_share_handle() argument [all …]
|
| H A D | sdl2-gl.c | 42 if (scon->surface) { in sdl2_set_scanout_mode() 43 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() 83 DisplaySurface *old_surface = scon->surface; in sdl2_gl_switch() 88 surface_gl_destroy_texture(scon->gls, scon->surface); in sdl2_gl_switch() 90 scon->surface = new_surface; in sdl2_gl_switch() 108 surface_gl_create_texture(scon->gls, scon->surface); in sdl2_gl_switch() [all …]
|
| H A D | sdl2-2d.c | 35 DisplaySurface *surf = scon->surface; in sdl2_2d_update() 63 DisplaySurface *old_surface = scon->surface; in sdl2_2d_switch() 68 scon->surface = new_surface; in sdl2_2d_switch() 92 switch (surface_format(scon->surface)) { in sdl2_2d_switch() 140 if (!scon->surface) { in sdl2_2d_redraw() 144 surface_width(scon->surface), in sdl2_2d_redraw() 145 surface_height(scon->surface)); in sdl2_2d_redraw()
|
| H A D | spice-display.c | 92 QXLDevSurfaceCreate *surface, in qemu_spice_create_primary_surface() argument 95 trace_qemu_spice_create_primary_surface(ssd->qxl.id, id, surface, async); in qemu_spice_create_primary_surface() 97 spice_qxl_create_primary_surface_async(&ssd->qxl, id, surface, in qemu_spice_create_primary_surface() 101 spice_qxl_create_primary_surface(&ssd->qxl, id, surface); in qemu_spice_create_primary_surface() 178 pixman_image_composite(PIXMAN_OP_SRC, ssd->surface, NULL, ssd->mirror, in qemu_spice_create_one_update() 328 QXLDevSurfaceCreate surface; in qemu_spice_create_host_primary() local 331 memset(&surface, 0, sizeof(surface)); in qemu_spice_create_host_primary() 343 surface.format = SPICE_SURFACE_FMT_32_xRGB; in qemu_spice_create_host_primary() 344 surface.width = surface_width(ssd->ds); in qemu_spice_create_host_primary() 345 surface.height = surface_height(ssd->ds); in qemu_spice_create_host_primary() [all …]
|
| H A D | gtk-gl-area.c | 31 if (vc->gfx.surface) { in gtk_gl_area_set_scanout_mode() 196 DisplaySurface *surface) in gd_gl_area_switch() argument 201 trace_gd_switch(vc->label, surface_width(surface), surface_height(surface)); in gd_gl_area_switch() 204 surface_width(vc->gfx.ds) == surface_width(surface) && in gd_gl_area_switch() 205 surface_height(vc->gfx.ds) == surface_height(surface)) { in gd_gl_area_switch() 212 surface_gl_create_texture(vc->gfx.gls, surface); in gd_gl_area_switch() 214 vc->gfx.ds = surface; in gd_gl_area_switch()
|
| H A D | sdl2.c | 83 if (!scon->surface) { in sdl2_window_create() 104 surface_width(scon->surface), in sdl2_window_create() 105 surface_height(scon->surface), in sdl2_window_create() 151 surface_width(scon->surface), in sdl2_window_resize() 152 surface_height(scon->surface)); in sdl2_window_resize() 323 x, 0, surface_width(scon->surface)); in sdl_send_mouse_event() 325 y, 0, surface_height(scon->surface)); in sdl_send_mouse_event() 428 sdl2_2d_switch(&scon->dcl, scon->surface); in handle_keydown() 443 height = (surface_height(scon->surface) * width) / in handle_keydown() 444 surface_width(scon->surface); in handle_keydown() [all …]
|
| /openbmc/openbmc/meta-raspberrypi/recipes-graphics/userland/files/ |
| H A D | 0013-Implement-triple-buffering-for-wayland.patch | 28 buffer_temp = surface->front_wl_buffer; 29 surface->front_wl_buffer = surface->back_wl_buffer; 30 - surface->back_wl_buffer = buffer_temp; 31 + surface->back_wl_buffer = surface->middle_wl_buffer; 32 + surface->middle_wl_buffer = buffer_temp; 34 configid = egl_config_to_id(surface->config); 42 surface->wl_egl_window = (struct wl_egl_window*)win; 43 surface->front_wl_buffer = NULL; 44 + surface->middle_wl_buffer = NULL; 45 surface->back_wl_buffer = allocate_wl_buffer( [all …]
|
| H A D | 0006-zero-out-wl-buffers-in-egl_surface_free.patch | 19 @@ -690,11 +690,13 @@ void egl_surface_free(EGL_SURFACE_T *surface) 20 if (surface->back_wl_buffer) { 21 wl_buffer_destroy(surface->back_wl_buffer->wl_buffer); 22 free(surface->back_wl_buffer); 23 + surface->back_wl_buffer = 0; 26 if (surface->front_wl_buffer) { 27 wl_buffer_destroy(surface->front_wl_buffer->wl_buffer); 28 free(surface->front_wl_buffer); 29 + surface->front_wl_buffer = 0;
|
| H A D | 0007-initialize-front-back-wayland-buffers.patch | 22 surface->wl_egl_window = (struct wl_egl_window*)win; 23 + surface->front_wl_buffer = NULL; 24 surface->back_wl_buffer = allocate_wl_buffer( 25 surface->wl_egl_window, color); 26 resource = surface->back_wl_buffer->resource; 28 surface->wl_egl_window = NULL; 29 + surface->front_wl_buffer = NULL; 30 + surface->back_wl_buffer = NULL;
|
| H A D | 0010-Fix-for-framerate-with-nested-composition.patch | 20 surface->back_wl_buffer = buffer; 30 RPC_UINT(khrn_platform_get_window_position(surface->win)), 31 RPC_INT(surface->back_wl_buffer->resource)); 35 surface->front_wl_buffer->in_use = 1; 37 surface->front_wl_buffer->wl_buffer, 40 surface->width, surface->height); 44 while(ret != -1 && surface->back_wl_buffer->in_use) 53 RPC_UINT(khrn_platform_get_window_position(surface->win)));
|
| H A D | 0001-Allow-applications-to-set-next-resource-handle.patch | 90 if (surface) { 91 … if (khrn_pointer_map_insert(&process->surfaces, process->next_surface, surface)) { 99 if (surface) { 100 if (khrn_pointer_map_insert(&process->surfaces, process->next_surface, surface)) { 108 if (surface) { 109 … if (khrn_pointer_map_insert(&process->surfaces, process->next_surface, surface)) { 118 + RPC_UINT(surface->serverbuffer), 119 + RPC_UINT(surface->width), 120 + RPC_UINT(surface->height), 121 + RPC_UINT(surface->internal_handle), [all …]
|
| H A D | 0002-wayland-Add-support-for-the-Wayland-winsys.patch | 840 if (surface) { 841 … if (khrn_pointer_map_insert(&process->surfaces, process->next_surface, surface)) { 849 if (surface) { 850 if (khrn_pointer_map_insert(&process->surfaces, process->next_surface, surface)) { 858 if (surface) { 859 … if (khrn_pointer_map_insert(&process->surfaces, process->next_surface, surface)) { 878 - RPC_UINT(surface->serverbuffer), 879 - RPC_UINT(surface->width), 880 - RPC_UINT(surface->height), 881 - RPC_UINT(surface->internal_handle), [all …]
|
| /openbmc/qemu/hw/display/ |
| H A D | jazz_led.c | 150 DisplaySurface *surface = qemu_console_surface(s->con); in jazz_led_update_display() local 157 bpp = (surface_bits_per_pixel(surface) + 7) >> 3; in jazz_led_update_display() 158 d1 = surface_data(surface); in jazz_led_update_display() 159 for (y = 0; y < surface_height(surface); y++) { in jazz_led_update_display() 160 memset(d1, 0x00, surface_width(surface) * bpp); in jazz_led_update_display() 161 d1 += surface_stride(surface); in jazz_led_update_display() 167 switch (surface_bits_per_pixel(surface)) { in jazz_led_update_display() 193 draw_horizontal_line(surface, 40, 10, 40, in jazz_led_update_display() 195 draw_vertical_line(surface, 10, 10, 40, in jazz_led_update_display() 197 draw_vertical_line(surface, 10, 40, 70, in jazz_led_update_display() [all …]
|
| H A D | ramfb.c | 51 DisplaySurface *surface; in ramfb_create_display_surface() local 72 surface = qemu_create_displaysurface_from(width, height, in ramfb_create_display_surface() 74 pixman_image_set_destroy_function(surface->image, in ramfb_create_display_surface() 77 return surface; in ramfb_create_display_surface() 83 DisplaySurface *surface; in ramfb_fw_cfg_write() local 94 surface = ramfb_create_display_surface(width, height, in ramfb_fw_cfg_write() 96 if (!surface) { in ramfb_fw_cfg_write() 103 s->ds = surface; in ramfb_fw_cfg_write()
|
| H A D | qxl-render.c | 29 DisplaySurface *surface = qemu_console_surface(qxl->vga.con); in qxl_blit() local 30 uint8_t *dst = surface_data(surface); in qxl_blit() 34 if (!surface_is_allocated(surface)) { in qxl_blit() 43 src += (qxl->guest_primary.surface.height - rect->top - 1) * in qxl_blit() 62 QXLSurfaceCreate *sc = &qxl->guest_primary.surface; in qxl_render_resize() 83 qxl->guest_primary.surface.format); in qxl_render_resize() 93 area->right = qxl->guest_primary.surface.width; in qxl_set_rect_to_surface() 95 area->bottom = qxl->guest_primary.surface.height; in qxl_set_rect_to_surface() 101 DisplaySurface *surface; in qxl_render_update_area_unlocked() local 102 int width = qxl->guest_head0_width ?: qxl->guest_primary.surface.width; in qxl_render_update_area_unlocked() [all …]
|
| H A D | g364fb.c | 78 DisplaySurface *surface = qemu_console_surface(s->con); in g364fb_draw_graphic8() local 90 switch (surface_bits_per_pixel(surface)) { in g364fb_draw_graphic8() 109 surface_bits_per_pixel(surface)); in g364fb_draw_graphic8() 130 data_display = dd = surface_data(surface); in g364fb_draw_graphic8() 182 data_display = dd = data_display + surface_stride(surface); in g364fb_draw_graphic8() 206 data_display += dy * surface_stride(surface); in g364fb_draw_graphic8() 221 DisplaySurface *surface = qemu_console_surface(s->con); in g364fb_draw_blank() local 230 w = s->width * surface_bytes_per_pixel(surface); in g364fb_draw_blank() 231 d = surface_data(surface); in g364fb_draw_blank() 234 d += surface_stride(surface); in g364fb_draw_blank() [all …]
|
| H A D | vmware_vga.c | 296 static inline bool vmsvga_verify_rect(DisplaySurface *surface, in vmsvga_verify_rect() argument 318 if (x + w > surface_width(surface)) { in vmsvga_verify_rect() 320 surface_width(surface), in vmsvga_verify_rect() 343 if (y + h > surface_height(surface)) { in vmsvga_verify_rect() 345 surface_height(surface), in vmsvga_verify_rect() 356 DisplaySurface *surface = qemu_console_surface(s->vga.con); in vmsvga_update_rect() local 364 if (!vmsvga_verify_rect(surface, __func__, x, y, w, h)) { in vmsvga_update_rect() 368 w = surface_width(surface); in vmsvga_update_rect() 369 h = surface_height(surface); in vmsvga_update_rect() 372 bypl = surface_stride(surface); in vmsvga_update_rect() [all …]
|
| H A D | xlnx_dp.c | 574 DisplaySurface *surface = qemu_console_surface(s->console); in xlnx_dp_set_dpdma() local 577 surface_data(surface)); in xlnx_dp_set_dpdma() 612 if (s->bout_plane.surface != current_console_surface) { in xlnx_dp_recreate_surface() 613 qemu_free_displaysurface(s->bout_plane.surface); in xlnx_dp_recreate_surface() 615 if (s->v_plane.surface != current_console_surface) { in xlnx_dp_recreate_surface() 616 qemu_free_displaysurface(s->v_plane.surface); in xlnx_dp_recreate_surface() 618 if (s->g_plane.surface != current_console_surface) { in xlnx_dp_recreate_surface() 619 qemu_free_displaysurface(s->g_plane.surface); in xlnx_dp_recreate_surface() 622 s->g_plane.surface in xlnx_dp_recreate_surface() 625 s->v_plane.surface in xlnx_dp_recreate_surface() [all …]
|
| H A D | omap_lcdc.c | 202 DisplaySurface *surface; in omap_update_display() local 212 surface = qemu_console_surface(omap_lcd->con); in omap_update_display() 213 if (!surface_bits_per_pixel(surface)) { in omap_update_display() 263 if (width != surface_width(surface) || in omap_update_display() 264 omap_lcd->height != surface_height(surface)) { in omap_update_display() 267 surface = qemu_console_surface(omap_lcd->con); in omap_update_display() 292 if (!surface_bits_per_pixel(surface)) { in omap_update_display() 307 linesize = surface_stride(surface); in omap_update_display() 314 framebuffer_update_display(surface, &omap_lcd->fbsection, in omap_update_display()
|
| /openbmc/qemu/include/ui/ |
| H A D | surface.h | 40 void qemu_displaysurface_set_share_handle(DisplaySurface *surface, 45 void qemu_free_displaysurface(DisplaySurface *surface); 47 static inline int surface_is_allocated(DisplaySurface *surface) in surface_is_allocated() argument 49 return surface->flags & QEMU_ALLOCATED_FLAG; in surface_is_allocated() 52 static inline int surface_is_placeholder(DisplaySurface *surface) in surface_is_placeholder() argument 54 return surface->flags & QEMU_PLACEHOLDER_FLAG; in surface_is_placeholder()
|
| H A D | console.h | 289 DisplaySurface *surface); 291 DisplaySurface *surface); 293 DisplaySurface *surface, 318 DisplaySurface *surface); 424 DisplaySurface *surface); 425 bool surface_gl_create_texture_from_fd(DisplaySurface *surface, 429 DisplaySurface *surface, 432 DisplaySurface *surface); 434 DisplaySurface *surface); 436 DisplaySurface *surface,
|
| /openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/ |
| H A D | batch.py | 41 surface = make_surface (w, h) 42 ctx = cairo.Context (surface) 44 write_surface (surface)
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/ |
| H A D | CVE-2019-7637.patch | 43 - * Calculate the pad-aligned scanline width of a surface 44 + * Calculate the pad-aligned scanline width of a surface. Return 0 in case of 47 Uint16 SDL_CalculatePitch(SDL_Surface *surface) 53 - pitch = surface->w*surface->format->BytesPerPixel; 55 + for (Uint8 byte = surface->format->BytesPerPixel; byte; byte--) { 56 + pitch += (unsigned int)surface->w; 57 + if (pitch < surface->w) { 62 switch (surface->format->BitsPerPixel) {
|
| /openbmc/qemu/hw/vfio/ |
| H A D | display.c | 422 dpy->region.surface = NULL; in vfio_display_region_update() 436 dpy->region.surface = NULL; in vfio_display_region_update() 439 if (dpy->region.surface && in vfio_display_region_update() 440 (surface_width(dpy->region.surface) != plane.width || in vfio_display_region_update() 441 surface_height(dpy->region.surface) != plane.height || in vfio_display_region_update() 442 surface_format(dpy->region.surface) != format)) { in vfio_display_region_update() 444 dpy->region.surface = NULL; in vfio_display_region_update() 467 if (dpy->region.surface == NULL) { in vfio_display_region_update() 469 dpy->region.surface = qemu_create_displaysurface_from in vfio_display_region_update() 472 dpy_gfx_replace_surface(dpy->con, dpy->region.surface); in vfio_display_region_update() [all …]
|