Home
last modified time | relevance | path

Searched refs:dri2_surf (Results 1 - 9 of 9) sorted by relevance

/third_party/mesa3d/src/egl/drivers/dri2/
H A Dplatform_ohos.c213 ohos_window_dequeue_buffer(struct dri2_egl_surface *dri2_surf) in ohos_window_dequeue_buffer() argument
217 if (ANativeWindow_dequeueBuffer(dri2_surf->window, &dri2_surf->buffer, in ohos_window_dequeue_buffer()
252 for (int i = 0; i < dri2_surf->color_buffers_count; i++) { in ohos_window_dequeue_buffer()
253 if (!dri2_surf->color_buffers[i].buffer) { in ohos_window_dequeue_buffer()
254 dri2_surf->color_buffers[i].buffer = dri2_surf->buffer; in ohos_window_dequeue_buffer()
256 if (dri2_surf->color_buffers[i].buffer == dri2_surf->buffer) { in ohos_window_dequeue_buffer()
257 dri2_surf in ohos_window_dequeue_buffer()
279 ohos_window_enqueue_buffer(_EGLDisplay *disp, struct dri2_egl_surface *dri2_surf) ohos_window_enqueue_buffer() argument
317 ohos_window_cancel_buffer(struct dri2_egl_surface *dri2_surf) ohos_window_cancel_buffer() argument
338 struct dri2_egl_surface *dri2_surf; ohos_create_surface() local
429 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); ohos_destroy_surface() local
463 update_buffers(struct dri2_egl_surface *dri2_surf) update_buffers() argument
492 get_front_bo(struct dri2_egl_surface *dri2_surf, unsigned int format) get_front_bo() argument
526 get_back_bo(struct dri2_egl_surface *dri2_surf) get_back_bo() argument
579 struct dri2_egl_surface *dri2_surf = loaderPrivate; ohos_image_get_buffers() local
633 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surface); ohos_query_buffer_age() local
647 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); ohos_swap_buffers() local
697 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); ohos_query_surface() local
766 ohos_get_buffers_parse_attachments(struct dri2_egl_surface *dri2_surf, unsigned int *attachments, int count) ohos_get_buffers_parse_attachments() argument
825 struct dri2_egl_surface *dri2_surf = loaderPrivate; ohos_get_buffers_with_format() local
946 struct dri2_egl_surface *dri2_surf = loaderPrivate; ohos_display_shared_buffer() local
[all...]
H A Dplatform_wayland.c247 struct dri2_egl_surface *dri2_surf = data; in wl_buffer_release() local
250 for (i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); ++i) in wl_buffer_release()
251 if (dri2_surf->color_buffers[i].wl_buffer == buffer) in wl_buffer_release()
254 assert (i < ARRAY_SIZE(dri2_surf->color_buffers)); in wl_buffer_release()
256 if (dri2_surf->color_buffers[i].wl_release) { in wl_buffer_release()
258 dri2_surf->color_buffers[i].wl_release = false; in wl_buffer_release()
259 dri2_surf->color_buffers[i].wl_buffer = NULL; in wl_buffer_release()
260 dri2_surf->color_buffers[i].age = 0; in wl_buffer_release()
263 dri2_surf->color_buffers[i].locked = false; in wl_buffer_release()
384 struct dri2_egl_surface *dri2_surf in resize_callback() local
411 struct dri2_egl_surface *dri2_surf = data; destroy_window_callback() local
433 struct dri2_egl_surface *dri2_surf = data; surface_dmabuf_feedback_format_table() local
447 struct dri2_egl_surface *dri2_surf = data; surface_dmabuf_feedback_main_device() local
472 struct dri2_egl_surface *dri2_surf = data; surface_dmabuf_feedback_tranche_target_device() local
484 struct dri2_egl_surface *dri2_surf = data; surface_dmabuf_feedback_tranche_flags() local
495 struct dri2_egl_surface *dri2_surf = data; surface_dmabuf_feedback_tranche_formats() local
547 struct dri2_egl_surface *dri2_surf = data; surface_dmabuf_feedback_tranche_done() local
561 struct dri2_egl_surface *dri2_surf = data; surface_dmabuf_feedback_done() local
596 struct dri2_egl_surface *dri2_surf; dri2_wl_create_window_surface() local
797 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_wl_destroy_surface() local
846 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_wl_swap_interval() local
855 dri2_wl_release_buffers(struct dri2_egl_surface *dri2_surf) dri2_wl_release_buffers() argument
888 create_dri_image_diff_gpu(struct dri2_egl_surface *dri2_surf, unsigned int linear_dri_image_format, uint32_t use_flags) create_dri_image_diff_gpu() argument
908 create_dri_image_from_dmabuf_feedback(struct dri2_egl_surface *dri2_surf, unsigned int dri_image_format, uint32_t use_flags) create_dri_image_from_dmabuf_feedback() argument
969 create_dri_image(struct dri2_egl_surface *dri2_surf, unsigned int dri_image_format, uint32_t use_flags) create_dri_image() argument
1003 get_back_bo(struct dri2_egl_surface *dri2_surf) get_back_bo() argument
1094 back_bo_to_dri_buffer(struct dri2_egl_surface *dri2_surf, __DRIbuffer *buffer) back_bo_to_dri_buffer() argument
1120 update_buffers(struct dri2_egl_surface *dri2_surf) update_buffers() argument
1170 update_buffers_if_needed(struct dri2_egl_surface *dri2_surf) update_buffers_if_needed() argument
1184 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_wl_get_buffers_with_format() local
1226 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_wl_get_buffers() local
1264 struct dri2_egl_surface *dri2_surf = loaderPrivate; image_get_buffers() local
1317 struct dri2_egl_surface *dri2_surf = data; wayland_throttle_callback() local
1354 create_wl_buffer(struct dri2_egl_display *dri2_dpy, struct dri2_egl_surface *dri2_surf, __DRIimage *image) create_wl_buffer() argument
1487 try_damage_buffer(struct dri2_egl_surface *dri2_surf, const EGLint *rects, EGLint n_rects) try_damage_buffer() argument
1516 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); dri2_wl_swap_buffers_with_damage() local
1615 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surface); dri2_wl_query_buffer_age() local
2278 dri2_wl_swrast_allocate_buffer(struct dri2_egl_surface *dri2_surf, int format, int w, int h, void **data, int *size, struct wl_buffer **buffer) dri2_wl_swrast_allocate_buffer() argument
2316 swrast_update_buffers(struct dri2_egl_surface *dri2_surf) swrast_update_buffers() argument
2409 dri2_wl_swrast_get_frontbuffer_data(struct dri2_egl_surface *dri2_surf) dri2_wl_swrast_get_frontbuffer_data() argument
2419 dri2_wl_swrast_get_backbuffer_data(struct dri2_egl_surface *dri2_surf) dri2_wl_swrast_get_backbuffer_data() argument
2426 dri2_wl_swrast_commit_backbuffer(struct dri2_egl_surface *dri2_surf) dri2_wl_swrast_commit_backbuffer() argument
2477 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_wl_swrast_get_drawable_info() local
2491 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_wl_swrast_get_image() local
2528 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_wl_swrast_put_image2() local
2569 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_wl_swrast_put_image() local
2581 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); dri2_wl_swrast_swap_buffers() local
2651 struct dri2_egl_surface *dri2_surf = _draw; kopperSetSurfaceCreateInfo() local
[all...]
H A Dplatform_android.c466 handle_in_fence_fd(struct dri2_egl_surface *dri2_surf, __DRIimage *img) argument
468 _EGLDisplay *disp = dri2_surf->base.Resource.Display;
471 if (dri2_surf->in_fence_fd < 0)
474 validate_fence_fd(dri2_surf->in_fence_fd);
478 dri2_dpy->image->setInFenceFd(img, dri2_surf->in_fence_fd);
480 sync_wait(dri2_surf->in_fence_fd, -1);
485 close_in_fence_fd(struct dri2_egl_surface *dri2_surf) argument
487 validate_fence_fd(dri2_surf->in_fence_fd);
488 if (dri2_surf->in_fence_fd >= 0)
489 close(dri2_surf
494 droid_window_dequeue_buffer(struct dri2_egl_surface *dri2_surf) global() argument
539 droid_window_enqueue_buffer(_EGLDisplay *disp, struct dri2_egl_surface *dri2_surf) global() argument
577 droid_window_cancel_buffer(struct dri2_egl_surface *dri2_surf) global() argument
599 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); global() local
638 struct dri2_egl_surface *dri2_surf; global() local
755 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); global() local
791 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); global() local
802 update_buffers(struct dri2_egl_surface *dri2_surf) global() argument
829 get_front_bo(struct dri2_egl_surface *dri2_surf, unsigned int format) global() argument
862 get_back_bo(struct dri2_egl_surface *dri2_surf) global() argument
917 struct dri2_egl_surface *dri2_surf = loaderPrivate; global() local
967 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surface); global() local
981 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); global() local
1091 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); global() local
1174 droid_get_buffers_parse_attachments(struct dri2_egl_surface *dri2_surf, unsigned int *attachments, int count) global() argument
1234 struct dri2_egl_surface *dri2_surf = loaderPrivate; global() local
1404 struct dri2_egl_surface *dri2_surf = loaderPrivate; global() local
[all...]
H A Dplatform_drm.c48 struct dri2_egl_surface *dri2_surf = surf->dri_private; in lock_front_buffer() local
52 if (dri2_surf->current == NULL) { in lock_front_buffer()
57 bo = dri2_surf->current->bo; in lock_front_buffer()
60 dri2_surf->current->locked = true; in lock_front_buffer()
61 dri2_surf->current = NULL; in lock_front_buffer()
71 struct dri2_egl_surface *dri2_surf = surf->dri_private; in release_buffer() local
73 for (unsigned i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) { in release_buffer()
74 if (dri2_surf->color_buffers[i].bo == bo) { in release_buffer()
75 dri2_surf->color_buffers[i].locked = false; in release_buffer()
85 struct dri2_egl_surface *dri2_surf in has_free_buffers() local
146 struct dri2_egl_surface *dri2_surf; dri2_drm_create_window_surface() local
209 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_drm_destroy_surface() local
227 get_back_bo(struct dri2_egl_surface *dri2_surf) get_back_bo() argument
273 get_swrast_front_bo(struct dri2_egl_surface *dri2_surf) get_swrast_front_bo() argument
297 back_bo_to_dri_buffer(struct dri2_egl_surface *dri2_surf, __DRIbuffer *buffer) back_bo_to_dri_buffer() argument
322 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_drm_get_buffers_with_format() local
402 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_drm_image_get_buffers() local
426 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); dri2_drm_swap_buffers() local
457 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surface); dri2_drm_query_buffer_age() local
524 struct dri2_egl_surface *dri2_surf = loaderPrivate; swrast_put_image2() local
573 struct dri2_egl_surface *dri2_surf = loaderPrivate; swrast_get_image() local
[all...]
H A Dplatform_device.c49 struct dri2_egl_surface *dri2_surf) in device_alloc_image()
53 dri2_surf->base.Width, in device_alloc_image()
54 dri2_surf->base.Height, in device_alloc_image()
55 dri2_surf->visual, in device_alloc_image()
61 device_free_images(struct dri2_egl_surface *dri2_surf) in device_free_images() argument
64 dri2_egl_display(dri2_surf->base.Resource.Display); in device_free_images()
66 if (dri2_surf->front) { in device_free_images()
67 dri2_dpy->image->destroyImage(dri2_surf->front); in device_free_images()
68 dri2_surf->front = NULL; in device_free_images()
71 free(dri2_surf in device_free_images()
48 device_alloc_image(struct dri2_egl_display *dri2_dpy, struct dri2_egl_surface *dri2_surf) device_alloc_image() argument
83 struct dri2_egl_surface *dri2_surf = loaderPrivate; device_image_get_buffers() local
124 struct dri2_egl_surface *dri2_surf; dri2_device_create_surface() local
167 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); device_destroy_surface() local
[all...]
H A Dplatform_surfaceless.c42 struct dri2_egl_surface *dri2_surf) in surfaceless_alloc_image()
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()
64 free(dri2_surf in surfaceless_free_images()
41 surfaceless_alloc_image(struct dri2_egl_display *dri2_dpy, struct dri2_egl_surface *dri2_surf) surfaceless_alloc_image() argument
76 struct dri2_egl_surface *dri2_surf = loaderPrivate; surfaceless_image_get_buffers() local
117 struct dri2_egl_surface *dri2_surf; dri2_surfaceless_create_surface() local
160 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); surfaceless_destroy_surface() local
[all...]
H A Dplatform_x11.c63 struct dri2_egl_surface * dri2_surf) in swrastCreateDrawable()
70 dri2_surf->gc = xcb_generate_id(dri2_dpy->conn); in swrastCreateDrawable()
72 xcb_create_gc(dri2_dpy->conn, dri2_surf->gc, dri2_surf->drawable, mask, &function); in swrastCreateDrawable()
74 dri2_surf->swapgc = xcb_generate_id(dri2_dpy->conn); in swrastCreateDrawable()
78 xcb_create_gc(dri2_dpy->conn, dri2_surf->swapgc, dri2_surf->drawable, mask, valgc); in swrastCreateDrawable()
79 switch (dri2_surf->depth) { in swrastCreateDrawable()
83 dri2_surf->bytes_per_pixel = 4; in swrastCreateDrawable()
86 dri2_surf in swrastCreateDrawable()
62 swrastCreateDrawable(struct dri2_egl_display * dri2_dpy, struct dri2_egl_surface * dri2_surf) swrastCreateDrawable() argument
100 swrastDestroyDrawable(struct dri2_egl_display * dri2_dpy, struct dri2_egl_surface * dri2_surf) swrastDestroyDrawable() argument
112 struct dri2_egl_surface *dri2_surf = loaderPrivate; x11_get_drawable_info() local
154 struct dri2_egl_surface *dri2_surf = loaderPrivate; swrastPutImage() local
200 struct dri2_egl_surface *dri2_surf = loaderPrivate; swrastGetImage() local
275 struct dri2_egl_surface *dri2_surf; dri2_x11_create_surface() local
425 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_x11_destroy_surface() local
458 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_query_surface() local
484 dri2_x11_process_buffers(struct dri2_egl_surface *dri2_surf, xcb_dri2_dri2_buffer_t *buffers, unsigned count) dri2_x11_process_buffers() argument
528 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_x11_get_buffers() local
565 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_x11_get_buffers_with_format() local
875 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); dri2_copy_region() local
908 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); dri2_x11_swap_buffers_msc() local
957 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); dri2_x11_swap_buffers() local
976 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); dri2_x11_swap_buffers_region() local
1015 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_x11_swap_interval() local
1032 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_x11_copy_buffers() local
1179 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surface); dri2_x11_get_sync_values() local
1201 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_kopper_swap_interval() local
1237 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_kopper_query_buffer_age() local
1308 struct dri2_egl_surface *dri2_surf = _draw; kopperSetSurfaceCreateInfo() local
[all...]
H A Degl_dri2.c160 struct dri2_egl_surface *dri2_surf = loaderPrivate; in dri_is_thread_safe() local
161 UNUSED _EGLDisplay *display = dri2_surf->base.Resource.Display; in dri_is_thread_safe()
195 struct dri2_egl_surface *dri2_surf = loaderPrivate; in dri2_get_pbuffer_drawable_info() local
198 *w = dri2_surf->base.Width; in dri2_get_pbuffer_drawable_info()
199 *h = dri2_surf->base.Height; in dri2_get_pbuffer_drawable_info()
203 dri2_get_bytes_per_pixel(struct dri2_egl_surface *dri2_surf) in dri2_get_bytes_per_pixel() argument
205 const int depth = dri2_surf->base.Config->BufferSize; in dri2_get_bytes_per_pixel()
214 struct dri2_egl_surface *dri2_surf = loaderPrivate; in dri2_put_image() local
215 const int bpp = dri2_get_bytes_per_pixel(dri2_surf); in dri2_put_image()
216 const int width = dri2_surf in dri2_put_image()
252 struct dri2_egl_surface *dri2_surf = loaderPrivate; dri2_get_image() local
1290 dri2_egl_surface_alloc_local_buffer(struct dri2_egl_surface *dri2_surf, unsigned int att, unsigned int format) dri2_egl_surface_alloc_local_buffer() argument
1309 dri2_egl_surface_free_local_buffers(struct dri2_egl_surface *dri2_surf) dri2_egl_surface_free_local_buffers() argument
1680 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_init_surface() local
1698 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_surface_set_out_fence_fd() local
1709 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_fini_surface() local
1732 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_surf_update_fence_fd() local
1749 dri2_create_drawable(struct dri2_egl_display *dri2_dpy, const __DRIconfig *config, struct dri2_egl_surface *dri2_surf, void *loaderPrivate) dri2_create_drawable() argument
1922 struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); dri2_surface_get_dri_drawable() local
[all...]
H A Degl_dri2.h618 dri2_egl_surface_alloc_local_buffer(struct dri2_egl_surface *dri2_surf,
622 dri2_egl_surface_free_local_buffers(struct dri2_egl_surface *dri2_surf);
635 struct dri2_egl_surface *dri2_surf,

Completed in 11 milliseconds