/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_blitter.c | 37 default_dst_texture(struct pipe_surface *dst_templ, struct pipe_resource *dst, in default_dst_texture() argument 40 memset(dst_templ, 0, sizeof(*dst_templ)); in default_dst_texture() 42 dst_templ->format = PIPE_FORMAT_R8_UINT; in default_dst_texture() 44 dst_templ->format = util_format_linear(dst->format); in default_dst_texture() 45 dst_templ->u.tex.level = dstlevel; in default_dst_texture() 46 dst_templ->u.tex.first_layer = dstz; in default_dst_texture() 47 dst_templ->u.tex.last_layer = dstz; in default_dst_texture() 89 struct pipe_surface *dst_view, dst_templ; in fd_blitter_blit() local 93 default_dst_texture(&dst_templ, dst, info->dst.level, in fd_blitter_blit() 95 dst_templ.format = info->dst.format; in fd_blitter_blit() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_readpixels.c | 266 struct pipe_resource dst_templ; in blit_to_staging() local 278 memset(&dst_templ, 0, sizeof(dst_templ)); in blit_to_staging() 279 dst_templ.target = PIPE_TEXTURE_2D; in blit_to_staging() 280 dst_templ.format = dst_format; in blit_to_staging() 282 dst_templ.bind |= PIPE_BIND_DEPTH_STENCIL; in blit_to_staging() 284 dst_templ.bind |= PIPE_BIND_RENDER_TARGET; in blit_to_staging() 285 dst_templ.usage = PIPE_USAGE_STAGING; in blit_to_staging() 288 &dst_templ.width0, &dst_templ.height0, in blit_to_staging() 289 &dst_templ.depth0, &dst_templ.array_size); in blit_to_staging() 291 dst = screen->resource_create(screen, &dst_templ); in blit_to_staging()
|
D | st_cb_texture.c | 1852 struct pipe_resource dst_templ; in st_GetTexSubImage() local 1987 memset(&dst_templ, 0, sizeof(dst_templ)); in st_GetTexSubImage() 1988 dst_templ.target = pipe_target; in st_GetTexSubImage() 1989 dst_templ.format = dst_format; in st_GetTexSubImage() 1990 dst_templ.bind = bind; in st_GetTexSubImage() 1991 dst_templ.usage = PIPE_USAGE_STAGING; in st_GetTexSubImage() 1994 &dst_templ.width0, &dst_templ.height0, in st_GetTexSubImage() 1995 &dst_templ.depth0, &dst_templ.array_size); in st_GetTexSubImage() 1997 dst = screen->resource_create(screen, &dst_templ); in st_GetTexSubImage()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_blit.c | 550 struct pipe_surface dst_templ, *dst_view; in r300_resource_copy_region() local 569 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in r300_resource_copy_region() 572 layout = util_format_description(dst_templ.format)->layout; in r300_resource_copy_region() 579 !screen->is_format_supported(screen, dst_templ.format, dst->target, in r300_resource_copy_region() 582 switch (util_format_get_blocksize(dst_templ.format)) { in r300_resource_copy_region() 584 dst_templ.format = PIPE_FORMAT_I8_UNORM; in r300_resource_copy_region() 587 dst_templ.format = PIPE_FORMAT_B4G4R4A4_UNORM; in r300_resource_copy_region() 590 dst_templ.format = PIPE_FORMAT_B8G8R8A8_UNORM; in r300_resource_copy_region() 593 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UNORM; in r300_resource_copy_region() 598 util_format_short_name(dst_templ.format)); in r300_resource_copy_region() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_blit.c | 881 struct pipe_surface *dst_view, dst_templ; in si_resource_copy_region() local 907 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in si_resource_copy_region() 918 dst_templ.format = src_templ.format; in si_resource_copy_region() 942 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UINT; in si_resource_copy_region() 959 dst_templ.format = PIPE_FORMAT_R8_UNORM; in si_resource_copy_region() 963 dst_templ.format = PIPE_FORMAT_R8G8_UNORM; in si_resource_copy_region() 967 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM; in si_resource_copy_region() 971 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UINT; in si_resource_copy_region() 975 dst_templ.format = PIPE_FORMAT_R32G32B32A32_UINT; in si_resource_copy_region() 990 if (util_format_is_snorm8(dst_templ.format)) { in si_resource_copy_region() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_blitter.c | 1442 void util_blitter_default_dst_texture(struct pipe_surface *dst_templ, in util_blitter_default_dst_texture() argument 1447 memset(dst_templ, 0, sizeof(*dst_templ)); in util_blitter_default_dst_texture() 1448 dst_templ->format = util_format_linear(dst->format); in util_blitter_default_dst_texture() 1449 dst_templ->u.tex.level = dstlevel; in util_blitter_default_dst_texture() 1450 dst_templ->u.tex.first_layer = dstz; in util_blitter_default_dst_texture() 1451 dst_templ->u.tex.last_layer = dstz; in util_blitter_default_dst_texture() 1458 struct pipe_surface dst_templ; in util_blitter_get_next_surface_layer() local 1460 memset(&dst_templ, 0, sizeof(dst_templ)); in util_blitter_get_next_surface_layer() 1461 dst_templ.format = surf->format; in util_blitter_get_next_surface_layer() 1462 dst_templ.u.tex.level = surf->u.tex.level; in util_blitter_get_next_surface_layer() [all …]
|
D | u_blitter.h | 277 void util_blitter_default_dst_texture(struct pipe_surface *dst_templ,
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_blit.c | 679 struct pipe_surface *dst_view, dst_templ; in r600_resource_copy_region() local 712 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in r600_resource_copy_region() 723 dst_templ.format = src_templ.format; in r600_resource_copy_region() 748 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UINT; in r600_resource_copy_region() 765 dst_templ.format = PIPE_FORMAT_R8_UNORM; in r600_resource_copy_region() 769 dst_templ.format = PIPE_FORMAT_R8G8_UNORM; in r600_resource_copy_region() 773 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM; in r600_resource_copy_region() 777 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UINT; in r600_resource_copy_region() 781 dst_templ.format = PIPE_FORMAT_R32G32B32A32_UINT; in r600_resource_copy_region() 792 dst_view = r600_create_surface_custom(ctx, dst, &dst_templ, in r600_resource_copy_region()
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_surface.c | 91 struct pipe_surface dst_templ, *dst_view; in i915_surface_copy_render() local 107 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in i915_surface_copy_render() 115 dst_view = i915_create_surface_custom(pipe, dst, &dst_templ, dst_width0, dst_height0); in i915_surface_copy_render()
|