Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 25 of 150) sorted by relevance

123456

/openbmc/qemu/ui/
H A Dconsole-gl.c50 assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface))); in surface_gl_create_texture()
52 if (surface->texture) { in surface_gl_create_texture()
79 surface_stride(surface) / surface_bytes_per_pixel(surface)); in surface_gl_create_texture()
84 0, surface->glformat, surface->gltype, in surface_gl_create_texture()
90 0, surface->glformat, surface->gltype, in surface_gl_create_texture()
107 if (surface->texture) { in surface_gl_update_texture()
114 surface->glformat, surface->gltype, in surface_gl_update_texture()
134 if (!surface || !surface->texture) { in surface_gl_destroy_texture()
138 surface->texture = 0; in surface_gl_destroy_texture()
150 gw = surface_width(surface); in surface_gl_setup_viewport()
[all …]
H A Dconsole.c459 assert(!surface->handle); in qemu_displaysurface_win32_set_handle()
461 surface->handle = h; in qemu_displaysurface_win32_set_handle()
468 DisplaySurface *surface; in qemu_create_displaysurface() local
492 return surface; in qemu_create_displaysurface()
507 return surface; in qemu_create_displaysurface_from()
517 return surface; in qemu_create_displaysurface_pixman()
541 return surface; in qemu_create_placeholder_surface()
546 if (surface == NULL) { in qemu_free_displaysurface()
551 g_free(surface); in qemu_free_displaysurface()
824 if (!surface) { in dpy_gfx_replace_surface()
[all …]
H A Dsdl2-gl.c42 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 Dsdl2-2d.c35 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 Dspice-display.c327 memset(&surface, 0, sizeof(surface)); in qemu_spice_create_host_primary()
342 surface.stride = -surface.width * 4; in qemu_spice_create_host_primary()
344 surface.flags = 0; in qemu_spice_create_host_primary()
345 surface.type = 0; in qemu_spice_create_host_primary()
393 if (ssd->surface && in qemu_spice_display_switch()
394 surface_width(surface) == pixman_image_get_width(ssd->surface) && in qemu_spice_display_switch()
395 surface_height(surface) == pixman_image_get_height(ssd->surface) && in qemu_spice_display_switch()
396 surface_format(surface) == pixman_image_get_format(ssd->surface)) { in qemu_spice_display_switch()
403 ssd->ds = surface; in qemu_spice_display_switch()
420 if (ssd->surface) { in qemu_spice_display_switch()
[all …]
/openbmc/openbmc/meta-raspberrypi/recipes-graphics/userland/files/
H A D0013-Implement-triple-buffering-for-wayland.patch29 surface->front_wl_buffer = surface->back_wl_buffer;
31 + surface->back_wl_buffer = surface->middle_wl_buffer;
43 surface->front_wl_buffer = NULL;
44 + surface->middle_wl_buffer = NULL;
49 surface->wl_egl_window = NULL;
50 surface->front_wl_buffer = NULL;
51 + surface->middle_wl_buffer = NULL;
52 surface->back_wl_buffer = NULL;
56 surface->back_wl_buffer = 0;
59 + if (surface->middle_wl_buffer) {
[all …]
H A D0006-zero-out-wl-buffers-in-egl_surface_free.patch19 @@ -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 D0007-initialize-front-back-wayland-buffers.patch22 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 D0010-Fix-for-framerate-with-nested-composition.patch20 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 D0001-Allow-applications-to-set-next-resource-handle.patch90 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) {
118 + RPC_UINT(surface->serverbuffer),
119 + RPC_UINT(surface->width),
120 + RPC_UINT(surface->height),
121 + RPC_UINT(surface->internal_handle),
122 + RPC_UINT(surface->swap_behavior == EGL_BUFFER_PRESERVED ? 1 : 0),
[all …]
H A D0002-wayland-Add-support-for-the-Wayland-winsys.patch840 if (surface) {
849 if (surface) {
858 if (surface) {
895 + surface->front_wl_buffer = surface->back_wl_buffer;
931 + surface->width, surface->height);
1011 + surface->wl_egl_window = NULL;
1042 if( surface->type == WINDOW ) {
1044 platform_destroy_winhandle( surface->win, surface->internal_handle );
1047 + if (surface->back_wl_buffer) {
1052 + if (surface->front_wl_buffer) {
[all …]
/openbmc/linux/Documentation/driver-api/surface_aggregator/
H A Dinternal-api.rst14 .. kernel-doc:: drivers/platform/surface/aggregator/ssh_parser.h
17 .. kernel-doc:: drivers/platform/surface/aggregator/ssh_parser.c
20 .. kernel-doc:: drivers/platform/surface/aggregator/ssh_msgb.h
23 .. kernel-doc:: drivers/platform/surface/aggregator/ssh_packet_layer.h
26 .. kernel-doc:: drivers/platform/surface/aggregator/ssh_packet_layer.c
33 .. kernel-doc:: drivers/platform/surface/aggregator/ssh_request_layer.h
43 .. kernel-doc:: drivers/platform/surface/aggregator/controller.h
46 .. kernel-doc:: drivers/platform/surface/aggregator/controller.c
53 .. kernel-doc:: drivers/platform/surface/aggregator/bus.c
60 .. kernel-doc:: drivers/platform/surface/aggregator/core.c
[all …]
H A Dclient-api.rst16 .. kernel-doc:: drivers/platform/surface/aggregator/ssh_packet_layer.c
25 .. kernel-doc:: drivers/platform/surface/aggregator/controller.c
28 .. kernel-doc:: drivers/platform/surface/aggregator/core.c
37 .. kernel-doc:: drivers/platform/surface/aggregator/bus.c
/openbmc/qemu/hw/display/
H A Djazz_led.c158 d1 = surface_data(surface); in jazz_led_update_display()
159 for (y = 0; y < surface_height(surface); y++) { 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()
199 draw_horizontal_line(surface, 70, 10, 40, in jazz_led_update_display()
201 draw_vertical_line(surface, 40, 40, 70, in jazz_led_update_display()
203 draw_vertical_line(surface, 40, 10, 40, in jazz_led_update_display()
[all …]
H A Dramfb.c51 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 Dqxl-render.c29 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()
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
127 surface = qemu_create_displaysurface_from in qxl_render_update_area_unlocked()
134 surface = qemu_create_displaysurface in qxl_render_update_area_unlocked()
[all …]
H A Dxlnx_dp.c598 s->g_plane.surface in xlnx_dp_recreate_surface()
601 s->v_plane.surface in xlnx_dp_recreate_surface()
605 s->bout_plane.surface = in xlnx_dp_recreate_surface()
612 s->bout_plane.surface = NULL; in xlnx_dp_recreate_surface()
1161 if ((surface_width(s->g_plane.surface) in xlnx_dp_blend_surface()
1162 != surface_width(s->v_plane.surface)) || in xlnx_dp_blend_surface()
1163 (surface_height(s->g_plane.surface) in xlnx_dp_blend_surface()
1164 != surface_height(s->v_plane.surface))) { in xlnx_dp_blend_surface()
1174 pixman_image_set_filter(s->g_plane.surface->image, in xlnx_dp_blend_surface()
1302 DisplaySurface *surface; in xlnx_dp_realize() local
[all …]
H A Dg364fb.c78 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()
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()
251 if (s->width != surface_width(surface) || in g364fb_update_display()
252 s->height != surface_height(surface)) { in g364fb_update_display()
350 start = ymin * surface_stride(surface); in g364_invalidate_cursor_position()
[all …]
H A Dvmware_vga.c318 if (x + w > surface_width(surface)) { in vmsvga_verify_rect()
343 if (y + h > surface_height(surface)) { in vmsvga_verify_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()
373 width = surface_bytes_per_pixel(surface) * w; in vmsvga_update_rect()
376 dst = surface_data(surface) + start; in vmsvga_update_rect()
425 int bypl = surface_stride(surface); in vmsvga_copy_rect()
426 int bypp = surface_bytes_per_pixel(surface); in vmsvga_copy_rect()
462 int bypl = surface_stride(surface); in vmsvga_fill_rect()
[all …]
/openbmc/qemu/include/ui/
H A Dsurface.h41 void qemu_displaysurface_win32_set_handle(DisplaySurface *surface,
46 void qemu_free_displaysurface(DisplaySurface *surface);
48 static inline int surface_is_allocated(DisplaySurface *surface) in surface_is_allocated() argument
50 return surface->flags & QEMU_ALLOCATED_FLAG; in surface_is_allocated()
53 static inline int surface_is_placeholder(DisplaySurface *surface) in surface_is_placeholder() argument
55 return surface->flags & QEMU_PLACEHOLDER_FLAG; in surface_is_placeholder()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc.c2557 else if (u->surface) in det_surface_update()
2744 surface->time.time_elapsed_in_us[surface->time.index] = in copy_surface_update_to_plane()
2759 surface->dst_rect = in copy_surface_update_to_plane()
2761 surface->src_rect = in copy_surface_update_to_plane()
2770 surface->format = in copy_surface_update_to_plane()
2774 surface->rotation = in copy_surface_update_to_plane()
2782 surface->visible = in copy_surface_update_to_plane()
2790 surface->dcc = in copy_surface_update_to_plane()
2837 surface->hdr_mult = in copy_surface_update_to_plane()
3077 struct dc_plane_state *surface = srf_updates[i].surface; in update_planes_and_stream_state() local
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/lvgl/files/
H A D0002-fix-sdl-handle-both-LV_IMAGE_SRC_FILE-and-LV_IMAGE_S.patch28 - SDL_Surface * surface = IMG_Load(&path[2]);
30 + SDL_Surface * surface = NULL;
33 + surface = IMG_Load(&path[2]);
37 + surface = SDL_CreateRGBSurfaceFrom(lvd->data,
55 if(surface == NULL) {
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/
H A Dbatch.py41 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 DCVE-2019-7637.patch43 - * 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 Ddisplay.c422 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()
477 surface_width(dpy->region.surface), in vfio_display_region_update()
[all …]

123456