/external/mesa3d/src/gallium/state_trackers/egl/common/ |
D | native_helper.c | 70 struct resource_surface *rsurf = CALLOC_STRUCT(resource_surface); in resource_surface_create() local 73 if (rsurf) { in resource_surface_create() 74 rsurf->screen = screen; in resource_surface_create() 75 rsurf->format = format; in resource_surface_create() 76 rsurf->bind = bind; in resource_surface_create() 77 rsurf->desired_fences = (swap_fences) ? atoi(swap_fences) : in resource_surface_create() 79 if (rsurf->desired_fences > EGL_SWAP_FENCES_MAX) in resource_surface_create() 80 rsurf->desired_fences = EGL_SWAP_FENCES_MAX; in resource_surface_create() 83 return rsurf; in resource_surface_create() 87 resource_surface_free_resources(struct resource_surface *rsurf) in resource_surface_free_resources() argument [all …]
|
D | native_helper.h | 41 resource_surface_destroy(struct resource_surface *rsurf); 44 resource_surface_set_size(struct resource_surface *rsurf, 48 resource_surface_get_size(struct resource_surface *rsurf, 52 resource_surface_add_resources(struct resource_surface *rsurf, 56 resource_surface_import_resource(struct resource_surface *rsurf, 61 resource_surface_get_resources(struct resource_surface *rsurf, 66 resource_surface_get_single_resource(struct resource_surface *rsurf, 70 resource_surface_swap_buffers(struct resource_surface *rsurf, 76 resource_surface_present(struct resource_surface *rsurf, 85 resource_surface_copy_swap(struct resource_surface *rsurf, [all …]
|
/external/mesa3d/src/gallium/state_trackers/egl/gdi/ |
D | native_gdi.c | 61 struct resource_surface *rsurf; member 90 if (resource_surface_set_size(gsurf->rsurf, w, h)) in gdi_surface_update_geometry() 107 return resource_surface_add_resources(gsurf->rsurf, buffer_mask); in gdi_surface_update_buffers() 132 ret = resource_surface_present(gsurf->rsurf, in gdi_surface_flush_frontbuffer() 150 ret = resource_surface_present(gsurf->rsurf, in gdi_surface_swap_buffers() 154 resource_surface_swap_buffers(gsurf->rsurf, in gdi_surface_swap_buffers() 201 resource_surface_get_resources(gsurf->rsurf, textures, attachment_mask); in gdi_surface_validate() 203 resource_surface_get_size(gsurf->rsurf, &w, &h); in gdi_surface_validate() 223 resource_surface_destroy(gsurf->rsurf); in gdi_surface_destroy() 243 gsurf->rsurf = resource_surface_create(gdpy->base.screen, in gdi_display_create_window_surface() [all …]
|
/external/mesa3d/src/gallium/state_trackers/egl/wayland/ |
D | native_wayland.c | 171 front_resource = resource_surface_get_single_resource(surface->rsurf, in wayland_window_surface_handle_resize() 173 if (resource_surface_set_size(surface->rsurf, in wayland_window_surface_handle_resize() 212 if (!resource_surface_add_resources(surface->rsurf, attachment_mask | in wayland_surface_validate() 217 resource_surface_get_resources(surface->rsurf, textures, attachment_mask); in wayland_surface_validate() 222 resource_surface_get_size(surface->rsurf, (uint *) width, (uint *) height); in wayland_surface_validate() 269 resource_surface_swap_buffers(surface->rsurf, in wayland_surface_swap_buffers() 283 resource_surface_get_size(surface->rsurf, in wayland_surface_swap_buffers() 336 resource_surface_get_size(surface->rsurf, &width, &height); in wayland_surface_present() 364 resource_surface_destroy(surface->rsurf); in wayland_surface_destroy() 398 surface->rsurf = resource_surface_create(display->base.screen, in wayland_create_window_surface() [all …]
|
D | native_shm.c | 90 resource = resource_surface_get_single_resource(surface->rsurf, attachment); in wayland_create_shm_buffer() 91 resource_surface_get_size(surface->rsurf, &width, &height); in wayland_create_shm_buffer()
|
D | native_wayland.h | 80 struct resource_surface *rsurf; member
|
D | native_drm.c | 103 resource = resource_surface_get_single_resource(surface->rsurf, attachment); in wayland_create_drm_buffer() 104 resource_surface_get_size(surface->rsurf, &width, &height); in wayland_create_drm_buffer()
|
/external/mesa3d/src/gallium/state_trackers/egl/drm/ |
D | modeset.c | 44 if (!resource_surface_add_resources(drmsurf->rsurf, attachment_mask)) in drm_surface_validate() 47 resource_surface_get_resources(drmsurf->rsurf, textures, attachment_mask); in drm_surface_validate() 87 resource_surface_add_resources(drmsurf->rsurf, 1 << natt); in drm_surface_init_framebuffers() 89 resource_surface_get_single_resource(drmsurf->rsurf, natt); in drm_surface_init_framebuffers() 141 (void) resource_surface_throttle(drmsurf->rsurf); in drm_surface_copy_swap() 142 if (!resource_surface_copy_swap(drmsurf->rsurf, &drmdpy->base)) in drm_surface_copy_swap() 145 (void) resource_surface_flush(drmsurf->rsurf, &drmdpy->base); in drm_surface_copy_swap() 185 resource_surface_swap_buffers(drmsurf->rsurf, in drm_surface_swap_buffers() 227 resource_surface_wait(drmsurf->rsurf); in drm_surface_wait() 235 resource_surface_wait(drmsurf->rsurf); in drm_surface_destroy() [all …]
|
D | native_drm.h | 98 struct resource_surface *rsurf; member
|
/external/mesa3d/src/gallium/state_trackers/egl/fbdev/ |
D | native_fbdev.c | 77 struct resource_surface *rsurf; member 104 if (!resource_surface_add_resources(fbsurf->rsurf, attachment_mask)) in fbdev_surface_validate() 107 resource_surface_get_resources(fbsurf->rsurf, textures, attachment_mask); in fbdev_surface_validate() 207 ret = resource_surface_present(fbsurf->rsurf, in fbdev_surface_present() 214 if (resource_surface_set_size(fbsurf->rsurf, in fbdev_surface_present() 224 ret = resource_surface_present(fbsurf->rsurf, in fbdev_surface_present() 242 resource_surface_destroy(fbsurf->rsurf); in fbdev_surface_destroy() 285 fbsurf->rsurf = resource_surface_create(fbdpy->base.screen, in fbdev_display_create_window_surface() 289 if (!fbsurf->rsurf) { in fbdev_display_create_window_surface() 294 resource_surface_set_size(fbsurf->rsurf, fbsurf->width, fbsurf->height); in fbdev_display_create_window_surface()
|
/external/mesa3d/src/gallium/state_trackers/egl/x11/ |
D | native_ximage.c | 65 struct resource_surface *rsurf; member 106 if (ok && resource_surface_set_size(xsurf->rsurf, w, h)) in ximage_surface_update_geometry() 123 return resource_surface_add_resources(xsurf->rsurf, buffer_mask); in ximage_surface_update_buffers() 146 ret = resource_surface_present(xsurf->rsurf, in ximage_surface_flush_frontbuffer() 160 ret = resource_surface_present(xsurf->rsurf, in ximage_surface_swap_buffers() 163 resource_surface_swap_buffers(xsurf->rsurf, in ximage_surface_swap_buffers() 210 resource_surface_get_resources(xsurf->rsurf, textures, attachment_mask); in ximage_surface_validate() 212 resource_surface_get_size(xsurf->rsurf, &w, &h); in ximage_surface_validate() 234 resource_surface_destroy(xsurf->rsurf); in ximage_surface_destroy() 255 xsurf->rsurf = resource_surface_create(xdpy->base.screen, in ximage_display_create_surface() [all …]
|
/external/mesa3d/src/egl/drivers/glx/ |
D | egl_glx.c | 757 _EGLSurface *rsurf, _EGLContext *ctx) in GLX_eglMakeCurrent() argument 762 struct GLX_egl_surface *GLX_rsurf = GLX_egl_surface(rsurf); in GLX_eglMakeCurrent() 771 if (!_eglBindContext(ctx, dsurf, rsurf, &old_ctx, &old_dsurf, &old_rsurf)) in GLX_eglMakeCurrent() 793 _eglBindContext(old_ctx, old_dsurf, old_rsurf, &ctx, &dsurf, &rsurf); in GLX_eglMakeCurrent() 796 &GLX_rsurf->Base == rsurf); in GLX_eglMakeCurrent() 799 _eglPutSurface(rsurf); in GLX_eglMakeCurrent()
|
/external/mesa3d/src/egl/drivers/dri2/ |
D | egl_dri2.c | 886 _EGLSurface *rsurf, _EGLContext *ctx) in dri2_make_current() argument 891 struct dri2_egl_surface *dri2_rsurf = dri2_egl_surface(rsurf); in dri2_make_current() 899 if (!_eglBindContext(ctx, dsurf, rsurf, &old_ctx, &old_dsurf, &old_rsurf)) in dri2_make_current() 927 _eglBindContext(old_ctx, old_dsurf, old_rsurf, &ctx, &dsurf, &rsurf); in dri2_make_current() 930 &dri2_rsurf->base == rsurf); in dri2_make_current() 933 _eglPutSurface(rsurf); in dri2_make_current()
|