Home
last modified time | relevance | path

Searched refs:dri2_surf (Results 1 – 7 of 7) sorted by relevance

/external/mesa3d/src/egl/drivers/dri2/
Dplatform_wayland.c77 struct dri2_egl_surface *dri2_surf = data; in wl_buffer_release() local
80 for (i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); ++i) in wl_buffer_release()
81 if (dri2_surf->color_buffers[i].wl_buffer == buffer) in wl_buffer_release()
84 if (i == ARRAY_SIZE(dri2_surf->color_buffers)) { in wl_buffer_release()
89 dri2_surf->color_buffers[i].locked = false; in wl_buffer_release()
99 struct dri2_egl_surface *dri2_surf = data; in resize_callback() local
101 dri2_egl_display(dri2_surf->base.Resource.Display); in resize_callback()
103 dri2_dpy->flush->invalidate(dri2_surf->dri_drawable); in resize_callback()
109 struct dri2_egl_surface *dri2_surf = data; in destroy_window_callback() local
110 dri2_surf->wl_win = NULL; in destroy_window_callback()
[all …]
Dplatform_android.c181 droid_window_dequeue_buffer(struct dri2_egl_surface *dri2_surf) in droid_window_dequeue_buffer() argument
185 if (dri2_surf->window->dequeueBuffer(dri2_surf->window, &dri2_surf->buffer, in droid_window_dequeue_buffer()
216 dri2_surf->buffer->common.incRef(&dri2_surf->buffer->common); in droid_window_dequeue_buffer()
222 for (int i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) { in droid_window_dequeue_buffer()
223 if (!dri2_surf->color_buffers[i].buffer) { in droid_window_dequeue_buffer()
224 dri2_surf->color_buffers[i].buffer = dri2_surf->buffer; in droid_window_dequeue_buffer()
226 if (dri2_surf->color_buffers[i].buffer == dri2_surf->buffer) { in droid_window_dequeue_buffer()
227 dri2_surf->back = &dri2_surf->color_buffers[i]; in droid_window_dequeue_buffer()
237 for (int i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) { in droid_window_dequeue_buffer()
238 dri2_surf->color_buffers[i].buffer = NULL; in droid_window_dequeue_buffer()
[all …]
Dplatform_drm.c47 struct dri2_egl_surface *dri2_surf = surf->dri_private; in lock_front_buffer() local
51 if (dri2_surf->current == NULL) { in lock_front_buffer()
56 bo = dri2_surf->current->bo; in lock_front_buffer()
59 dri2_surf->current->locked = true; in lock_front_buffer()
60 dri2_surf->current = NULL; in lock_front_buffer()
70 struct dri2_egl_surface *dri2_surf = surf->dri_private; in release_buffer() local
72 for (unsigned i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) { in release_buffer()
73 if (dri2_surf->color_buffers[i].bo == bo) { in release_buffer()
74 dri2_surf->color_buffers[i].locked = false; in release_buffer()
84 struct dri2_egl_surface *dri2_surf = surf->dri_private; in has_free_buffers() local
[all …]
Dplatform_surfaceless.c42 struct dri2_egl_surface *dri2_surf) in surfaceless_alloc_image() argument
46 dri2_surf->base.Width, in surfaceless_alloc_image()
47 dri2_surf->base.Height, in surfaceless_alloc_image()
48 dri2_surf->visual, in surfaceless_alloc_image()
54 surfaceless_free_images(struct dri2_egl_surface *dri2_surf) in surfaceless_free_images() argument
57 dri2_egl_display(dri2_surf->base.Resource.Display); in surfaceless_free_images()
59 if (dri2_surf->front) { in surfaceless_free_images()
60 dri2_dpy->image->destroyImage(dri2_surf->front); in surfaceless_free_images()
61 dri2_surf->front = NULL; in surfaceless_free_images()
73 struct dri2_egl_surface *dri2_surf = loaderPrivate; in surfaceless_image_get_buffers() local
[all …]
Dplatform_x11.c60 struct dri2_egl_surface * dri2_surf) in swrastCreateDrawable() argument
67 dri2_surf->gc = xcb_generate_id(dri2_dpy->conn); in swrastCreateDrawable()
69 xcb_create_gc(dri2_dpy->conn, dri2_surf->gc, dri2_surf->drawable, mask, &function); in swrastCreateDrawable()
71 dri2_surf->swapgc = xcb_generate_id(dri2_dpy->conn); in swrastCreateDrawable()
75 xcb_create_gc(dri2_dpy->conn, dri2_surf->swapgc, dri2_surf->drawable, mask, valgc); in swrastCreateDrawable()
76 switch (dri2_surf->depth) { in swrastCreateDrawable()
80 dri2_surf->bytes_per_pixel = 4; in swrastCreateDrawable()
83 dri2_surf->bytes_per_pixel = 2; in swrastCreateDrawable()
86 dri2_surf->bytes_per_pixel = 1; in swrastCreateDrawable()
89 dri2_surf->bytes_per_pixel = 0; in swrastCreateDrawable()
[all …]
Degl_dri2.c129 struct dri2_egl_surface *dri2_surf = loaderPrivate; in dri_is_thread_safe() local
130 _EGLDisplay *display = dri2_surf->base.Resource.Display; in dri_is_thread_safe()
1015 dri2_egl_surface_alloc_local_buffer(struct dri2_egl_surface *dri2_surf, in dri2_egl_surface_alloc_local_buffer() argument
1019 dri2_egl_display(dri2_surf->base.Resource.Display); in dri2_egl_surface_alloc_local_buffer()
1021 if (att >= ARRAY_SIZE(dri2_surf->local_buffers)) in dri2_egl_surface_alloc_local_buffer()
1024 if (!dri2_surf->local_buffers[att]) { in dri2_egl_surface_alloc_local_buffer()
1025 dri2_surf->local_buffers[att] = in dri2_egl_surface_alloc_local_buffer()
1027 dri2_surf->base.Width, dri2_surf->base.Height); in dri2_egl_surface_alloc_local_buffer()
1030 return dri2_surf->local_buffers[att]; in dri2_egl_surface_alloc_local_buffer()
1034 dri2_egl_surface_free_local_buffers(struct dri2_egl_surface *dri2_surf) in dri2_egl_surface_free_local_buffers() argument
[all …]
Degl_dri2.h505 dri2_egl_surface_alloc_local_buffer(struct dri2_egl_surface *dri2_surf,
509 dri2_egl_surface_free_local_buffers(struct dri2_egl_surface *dri2_surf);