/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_cb_readpixels.c | 283 struct pipe_resource dst_templ; in blit_to_staging() local 295 memset(&dst_templ, 0, sizeof(dst_templ)); in blit_to_staging() 296 dst_templ.target = PIPE_TEXTURE_2D; in blit_to_staging() 297 dst_templ.format = dst_format; in blit_to_staging() 299 dst_templ.bind |= PIPE_BIND_DEPTH_STENCIL; in blit_to_staging() 301 dst_templ.bind |= PIPE_BIND_RENDER_TARGET; in blit_to_staging() 302 dst_templ.usage = PIPE_USAGE_STAGING; in blit_to_staging() 305 &dst_templ.width0, &dst_templ.height0, in blit_to_staging() 306 &dst_templ.depth0, &dst_templ.array_size); in blit_to_staging() 308 dst = screen->resource_create(screen, &dst_templ); in blit_to_staging()
|
D | st_cb_texture.c | 165 struct pipe_resource dst_templ; in create_dst_texture() local 168 memset(&dst_templ, 0, sizeof(dst_templ)); in create_dst_texture() 169 dst_templ.target = pipe_target; in create_dst_texture() 170 dst_templ.format = dst_format; in create_dst_texture() 171 dst_templ.bind = bind; in create_dst_texture() 172 dst_templ.usage = PIPE_USAGE_STAGING; in create_dst_texture() 175 &dst_templ.width0, &dst_templ.height0, in create_dst_texture() 176 &dst_templ.depth0, &dst_templ.array_size); in create_dst_texture() 178 return screen->resource_create(screen, &dst_templ); in create_dst_texture()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_blitter.c | 40 default_dst_texture(struct pipe_surface *dst_templ, struct pipe_resource *dst, in default_dst_texture() argument 43 memset(dst_templ, 0, sizeof(*dst_templ)); in default_dst_texture() 44 dst_templ->u.tex.level = dstlevel; in default_dst_texture() 45 dst_templ->u.tex.first_layer = dstz; in default_dst_texture() 46 dst_templ->u.tex.last_layer = dstz; in default_dst_texture() 125 struct pipe_surface *dst_view, dst_templ; in fd_blitter_blit() local 156 default_dst_texture(&dst_templ, dst, info->dst.level, info->dst.box.z); in fd_blitter_blit() 157 dst_templ.format = info->dst.format; in fd_blitter_blit() 158 dst_view = pipe->create_surface(pipe, dst, &dst_templ); in fd_blitter_blit()
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_blit.c | 561 struct pipe_surface dst_templ, *dst_view; in r300_resource_copy_region() local 580 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in r300_resource_copy_region() 583 layout = util_format_description(dst_templ.format)->layout; in r300_resource_copy_region() 590 !screen->is_format_supported(screen, dst_templ.format, dst->target, in r300_resource_copy_region() 593 switch (util_format_get_blocksize(dst_templ.format)) { in r300_resource_copy_region() 595 dst_templ.format = PIPE_FORMAT_I8_UNORM; in r300_resource_copy_region() 598 dst_templ.format = PIPE_FORMAT_B4G4R4A4_UNORM; in r300_resource_copy_region() 601 dst_templ.format = PIPE_FORMAT_B8G8R8A8_UNORM; in r300_resource_copy_region() 604 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UNORM; in r300_resource_copy_region() 609 util_format_short_name(dst_templ.format)); in r300_resource_copy_region() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_blitter.c | 1633 void util_blitter_default_dst_texture(struct pipe_surface *dst_templ, in util_blitter_default_dst_texture() argument 1638 memset(dst_templ, 0, sizeof(*dst_templ)); in util_blitter_default_dst_texture() 1639 dst_templ->format = util_format_linear(dst->format); in util_blitter_default_dst_texture() 1640 dst_templ->u.tex.level = dstlevel; in util_blitter_default_dst_texture() 1641 dst_templ->u.tex.first_layer = dstz; in util_blitter_default_dst_texture() 1642 dst_templ->u.tex.last_layer = dstz; in util_blitter_default_dst_texture() 1649 struct pipe_surface dst_templ; in util_blitter_get_next_surface_layer() local 1651 memset(&dst_templ, 0, sizeof(dst_templ)); in util_blitter_get_next_surface_layer() 1652 dst_templ.format = surf->format; in util_blitter_get_next_surface_layer() 1653 dst_templ.u.tex.level = surf->u.tex.level; in util_blitter_get_next_surface_layer() [all …]
|
D | u_blitter.h | 290 void util_blitter_default_dst_texture(struct pipe_surface *dst_templ,
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_blit.c | 674 struct pipe_surface *dst_view, dst_templ; in r600_resource_copy_region() local 707 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in r600_resource_copy_region() 718 dst_templ.format = src_templ.format; in r600_resource_copy_region() 743 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UINT; in r600_resource_copy_region() 760 dst_templ.format = PIPE_FORMAT_R8_UNORM; in r600_resource_copy_region() 764 dst_templ.format = PIPE_FORMAT_R8G8_UNORM; in r600_resource_copy_region() 768 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM; in r600_resource_copy_region() 772 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UINT; in r600_resource_copy_region() 776 dst_templ.format = PIPE_FORMAT_R32G32B32A32_UINT; in r600_resource_copy_region() 787 dst_view = r600_create_surface_custom(ctx, dst, &dst_templ, in r600_resource_copy_region()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_blit.c | 904 struct pipe_surface *dst_view, dst_templ; in si_resource_copy_region() local 925 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in si_resource_copy_region() 934 dst_templ.format = PIPE_FORMAT_R8_UNORM; in si_resource_copy_region() 938 dst_templ.format = PIPE_FORMAT_R8G8_UNORM; in si_resource_copy_region() 942 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM; in si_resource_copy_region() 946 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UINT; in si_resource_copy_region() 950 dst_templ.format = PIPE_FORMAT_R32G32B32A32_UINT; in si_resource_copy_region() 963 if (util_format_is_snorm(dst_templ.format)) { in si_resource_copy_region() 964 dst_templ.format = src_templ.format = util_format_snorm_to_sint(dst_templ.format); in si_resource_copy_region() 967 vi_disable_dcc_if_incompatible_format(sctx, dst, dst_level, dst_templ.format); in si_resource_copy_region() [all …]
|
/third_party/mesa3d/src/gallium/drivers/i915/ |
D | i915_surface.c | 87 struct pipe_surface dst_templ, *dst_view; in i915_surface_copy_render() local 103 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in i915_surface_copy_render() 111 dst_view = i915_create_surface_custom(pipe, dst, &dst_templ, dst_width0, in i915_surface_copy_render()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_blit.c | 359 struct pipe_surface *dst_view, dst_templ; in zink_blit() local 360 …util_blitter_default_dst_texture(&dst_templ, info->dst.resource, info->dst.level, info->dst.box.z); in zink_blit() 361 dst_view = pctx->create_surface(pctx, info->dst.resource, &dst_templ); in zink_blit()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_blit.c | 418 struct pipe_surface *dst_view, dst_templ; in crocus_blit() local 419 …util_blitter_default_dst_texture(&dst_templ, info->dst.resource, info->dst.level, info->dst.box.z); in crocus_blit() 420 dst_view = ctx->create_surface(ctx, info->dst.resource, &dst_templ); in crocus_blit()
|