Home
last modified time | relevance | path

Searched refs:scanout (Results 1 - 25 of 41) sorted by relevance

12

/third_party/mesa3d/src/gallium/auxiliary/renderonly/
H A Drenderonly.c41 renderonly_scanout_destroy(struct renderonly_scanout *scanout, in renderonly_scanout_destroy() argument
47 destroy_dumb.handle = scanout->handle; in renderonly_scanout_destroy()
50 FREE(scanout); in renderonly_scanout_destroy()
58 struct renderonly_scanout *scanout; in renderonly_create_kms_dumb_buffer_for_resource() local
67 scanout = CALLOC_STRUCT(renderonly_scanout); in renderonly_create_kms_dumb_buffer_for_resource()
68 if (!scanout) in renderonly_create_kms_dumb_buffer_for_resource()
71 /* create dumb buffer at scanout GPU */ in renderonly_create_kms_dumb_buffer_for_resource()
79 scanout->handle = create_dumb.handle; in renderonly_create_kms_dumb_buffer_for_resource()
80 scanout->stride = create_dumb.pitch; in renderonly_create_kms_dumb_buffer_for_resource()
83 return scanout; in renderonly_create_kms_dumb_buffer_for_resource()
115 struct renderonly_scanout *scanout; renderonly_create_gpu_import_for_resource() local
[all...]
H A Drenderonly.h41 * Create a renderonly_scanout object for scanout resource.
49 * struct renderonly_scanout *scanout;
54 * - Do any special treatment for a scanout resource like importing the GPU
55 * resource into the scanout hw.
61 * - Create the scanout resource in resource_create and
63 * can fail if the scanout resource couldn't be created.
64 * - Try to import the scanout resource in resource_from_handle with
66 * the scanout resource couldn't be created.
68 * renderonly_get_handle with the scanout resource, even if the scanout
95 renderonly_get_handle(struct renderonly_scanout *scanout, struct winsys_handle *handle) renderonly_get_handle() argument
[all...]
/third_party/mesa3d/src/gallium/winsys/panfrost/drm/
H A Dpanfrost_drm_winsys.c67 struct renderonly_scanout *scanout = CALLOC_STRUCT(renderonly_scanout); in panfrost_create_kms_dumb_buffer_for_resource() local
68 if (!scanout) in panfrost_create_kms_dumb_buffer_for_resource()
71 /* create dumb buffer at scanout GPU */ in panfrost_create_kms_dumb_buffer_for_resource()
82 scanout->handle = create_dumb.handle; in panfrost_create_kms_dumb_buffer_for_resource()
83 scanout->stride = create_dumb.pitch; in panfrost_create_kms_dumb_buffer_for_resource()
86 return scanout; in panfrost_create_kms_dumb_buffer_for_resource()
100 return scanout; in panfrost_create_kms_dumb_buffer_for_resource()
103 destroy_dumb.handle = scanout->handle; in panfrost_create_kms_dumb_buffer_for_resource()
107 FREE(scanout); in panfrost_create_kms_dumb_buffer_for_resource()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_resource.c277 rsc->scanout = renderonly_scanout_for_resource(&scanout_templat, in etna_resource_alloc()
279 if (!rsc->scanout) { in etna_resource_alloc()
330 * and any other non-scanout resource will be used as a texture at some point, in etna_resource_create()
331 * So allocate a render-compatible base buffer for scanout/depthstencil buffers, in etna_resource_create()
346 if (/* linear base or scanout without modifier requested */ in etna_resource_create()
354 /* modifier is only used for scanout surfaces, so safe to use LINEAR here */ in etna_resource_create()
449 if (rsc->scanout) in etna_resource_destroy()
450 renderonly_scanout_destroy(rsc->scanout, etna_screen(pscreen)->ro); in etna_resource_destroy()
543 etna_resource(imp_prsc)->scanout = in etna_resource_from_handle()
546 /* failure is expected for scanout incompatibl in etna_resource_from_handle()
566 struct renderonly_scanout *scanout; etna_resource_get_handle() local
[all...]
H A Detnaviv_resource.h75 struct renderonly_scanout *scanout; member
/third_party/mesa3d/src/gallium/drivers/lima/
H A Dlima_resource.c60 struct renderonly_scanout *scanout; in lima_resource_create_scanout() local
69 scanout = renderonly_scanout_for_resource(&scanout_templat, in lima_resource_create_scanout()
71 if (!scanout) in lima_resource_create_scanout()
80 renderonly_scanout_destroy(scanout, screen->ro); in lima_resource_create_scanout()
85 res->scanout = scanout; in lima_resource_create_scanout()
260 * may be used for scanout. So we assume buffer created by this in lima_resource_create_with_modifiers()
261 * function always enable scanout if linear modifier is permitted. in lima_resource_create_with_modifiers()
278 if (res->scanout) in lima_resource_destroy()
279 renderonly_scanout_destroy(res->scanout, scree in lima_resource_destroy()
[all...]
H A Dlima_resource.h55 struct renderonly_scanout *scanout; member
/third_party/mesa3d/src/gallium/drivers/v3d/
H A Dv3d_resource.h90 struct renderonly_scanout *scanout; member
H A Dv3d_resource.c393 if (rsc->scanout) in v3d_resource_destroy()
394 renderonly_scanout_destroy(rsc->scanout, screen->ro); in v3d_resource_destroy()
441 if (renderonly_get_handle(rsc->scanout, whandle)) { in v3d_resource_get_handle()
831 rsc->scanout = in v3d_resource_create_with_modifiers()
836 if (!rsc->scanout) { in v3d_resource_create_with_modifiers()
837 fprintf(stderr, "Failed to create scanout resource\n"); in v3d_resource_create_with_modifiers()
955 rsc->scanout = in v3d_resource_from_handle()
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_screen_cache.h71 uint32_t scanout:1; member
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_resource.h54 struct renderonly_scanout *scanout; member
H A Dvc4_resource.c267 if (rsc->scanout) in vc4_resource_destroy()
268 renderonly_scanout_destroy(rsc->scanout, screen->ro); in vc4_resource_destroy()
315 return renderonly_get_handle(rsc->scanout, whandle); in vc4_resource_get_handle()
579 /* Set up the "scanout resource" (the dmabuf export of our buffer to in vc4_resource_create_with_modifiers()
583 * assume that all calls with modifiers are scanout-possible. in vc4_resource_create_with_modifiers()
588 rsc->scanout = in vc4_resource_create_with_modifiers()
590 if (!rsc->scanout) in vc4_resource_create_with_modifiers()
595 (tmpl->bind & PIPE_BIND_SCANOUT) ? "scanout " : "", in vc4_resource_create_with_modifiers()
703 rsc->scanout = in vc4_resource_from_handle()
/third_party/mesa3d/src/gallium/drivers/panfrost/
H A Dpan_resource.h64 struct renderonly_scanout *scanout; member
H A Dpan_resource.c129 rsc->scanout = in panfrost_resource_from_handle()
146 struct renderonly_scanout *scanout; in panfrost_resource_get_handle() local
159 scanout = rsrc->scanout; in panfrost_resource_get_handle()
165 return renderonly_get_handle(scanout, handle); in panfrost_resource_get_handle()
697 so->scanout = in panfrost_resource_create_with_modifier()
702 if (!so->scanout) { in panfrost_resource_create_with_modifier()
703 fprintf(stderr, "Failed to create scanout resource\n"); in panfrost_resource_create_with_modifier()
773 if (rsrc->scanout) in panfrost_resource_destroy()
774 renderonly_scanout_destroy(rsrc->scanout, de in panfrost_resource_destroy()
[all...]
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_radeon_winsys.h151 bool scanout; member
157 bool scanout; member
H A Dradv_image.c114 return info->bo_metadata->u.gfx9.scanout; in radv_surface_has_scanout()
116 return info->bo_metadata->u.legacy.scanout; in radv_surface_has_scanout()
119 return info->scanout; in radv_surface_has_scanout()
1387 metadata->u.gfx9.scanout = (surface->flags & RADEON_SURF_SCANOUT) != 0; in radv_init_metadata()
1402 metadata->u.legacy.scanout = (surface->flags & RADEON_SURF_SCANOUT) != 0; in radv_init_metadata()
2373 bool scanout = wsi_info && wsi_info->scanout; in radv_CreateImage() local
2379 .scanout = scanout, in radv_CreateImage()
/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_resource.c1030 if (rsc->scanout) in fd_resource_destroy()
1031 renderonly_scanout_destroy(rsc->scanout, fd_screen(pscreen)->ro); in fd_resource_destroy()
1071 return fd_screen_bo_get_handle(pscreen, rsc->bo, rsc->scanout, in fd_resource_get_handle()
1320 /* when using kmsro, scanout buffers are allocated on the display device in fd_resource_create_with_modifiers()
1322 * assume that all calls with modifiers are scanout-possible in fd_resource_create_with_modifiers()
1328 struct renderonly_scanout *scanout; in fd_resource_create_with_modifiers() local
1334 scanout = in fd_resource_create_with_modifiers()
1336 if (!scanout) in fd_resource_create_with_modifiers()
1339 renderonly_scanout_destroy(scanout, screen->ro); in fd_resource_create_with_modifiers()
1438 rsc->scanout in fd_resource_from_handle()
[all...]
H A Dfreedreno_screen.h195 struct renderonly_scanout *scanout,
H A Dfreedreno_screen.c831 struct renderonly_scanout *scanout, unsigned stride, in fd_screen_bo_get_handle()
842 return renderonly_get_handle(scanout, whandle); in fd_screen_bo_get_handle()
830 fd_screen_bo_get_handle(struct pipe_screen *pscreen, struct fd_bo *bo, struct renderonly_scanout *scanout, unsigned stride, struct winsys_handle *whandle) fd_screen_bo_get_handle() argument
/third_party/mesa3d/src/vulkan/wsi/
H A Dwsi_common.h61 bool scanout; member
/third_party/mesa3d/src/gallium/drivers/crocus/
H A Dcrocus_bufmgr.h145 * Boolean of if this is used for scanout.
147 bool scanout; member
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/
H A Dradv_amdgpu_bo.c901 tiling_flags |= AMDGPU_TILING_SET(SCANOUT, md->u.gfx9.scanout); in radv_amdgpu_winsys_bo_set_metadata()
919 if (md->u.legacy.scanout) in radv_amdgpu_winsys_bo_set_metadata()
948 md->u.gfx9.scanout = AMDGPU_TILING_GET(tiling_flags, SCANOUT); in radv_amdgpu_winsys_bo_get_metadata()
964 md->u.legacy.scanout = AMDGPU_TILING_GET(tiling_flags, MICRO_TILE_MODE) == 0; /* DISPLAY */ in radv_amdgpu_winsys_bo_get_metadata()
/third_party/libdrm/include/drm/
H A Dvmwgfx_drm.h175 * @scanout: Boolean whether the surface is intended to be used as a
176 * scanout.
188 __s32 scanout; member
899 * @drm_vmw_surface_flag_scanout: Whether the surface is a scanout
/third_party/mesa3d/src/gallium/winsys/svga/drm/
H A Dvmwgfx_drm.h199 * @scanout: Boolean whether the surface is intended to be used as a
200 * scanout.
212 __s32 scanout; member
906 * @drm_vmw_surface_flag_scanout: Whether the surface is a scanout
/third_party/mesa3d/src/panfrost/vulkan/
H A Dpanvk_image.c146 if (wsi_info && wsi_info->scanout) in panvk_image_select_mod()

Completed in 25 milliseconds

12