Home
last modified time | relevance | path

Searched refs:dst_templ (Results 1 – 9 of 9) sorted by relevance

/external/mesa3d/src/mesa/state_tracker/
Dst_cb_readpixels.c269 struct pipe_resource dst_templ; in blit_to_staging() local
281 memset(&dst_templ, 0, sizeof(dst_templ)); in blit_to_staging()
282 dst_templ.target = PIPE_TEXTURE_2D; in blit_to_staging()
283 dst_templ.format = dst_format; in blit_to_staging()
285 dst_templ.bind |= PIPE_BIND_DEPTH_STENCIL; in blit_to_staging()
287 dst_templ.bind |= PIPE_BIND_RENDER_TARGET; in blit_to_staging()
288 dst_templ.usage = PIPE_USAGE_STAGING; in blit_to_staging()
291 &dst_templ.width0, &dst_templ.height0, in blit_to_staging()
292 &dst_templ.depth0, &dst_templ.array_size); in blit_to_staging()
294 dst = screen->resource_create(screen, &dst_templ); in blit_to_staging()
Dst_cb_texture.c1976 struct pipe_resource dst_templ; in st_GetTexSubImage() local
2156 memset(&dst_templ, 0, sizeof(dst_templ)); in st_GetTexSubImage()
2157 dst_templ.target = pipe_target; in st_GetTexSubImage()
2158 dst_templ.format = dst_format; in st_GetTexSubImage()
2159 dst_templ.bind = bind; in st_GetTexSubImage()
2160 dst_templ.usage = PIPE_USAGE_STAGING; in st_GetTexSubImage()
2163 &dst_templ.width0, &dst_templ.height0, in st_GetTexSubImage()
2164 &dst_templ.depth0, &dst_templ.array_size); in st_GetTexSubImage()
2166 dst = screen->resource_create(screen, &dst_templ); in st_GetTexSubImage()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_blitter.c40 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()
132 struct pipe_surface *dst_view, dst_templ; in fd_blitter_blit() local
146 default_dst_texture(&dst_templ, dst, info->dst.level, in fd_blitter_blit()
148 dst_templ.format = info->dst.format; in fd_blitter_blit()
149 dst_view = pipe->create_surface(pipe, dst, &dst_templ); in fd_blitter_blit()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_blit.c552 struct pipe_surface dst_templ, *dst_view; in r300_resource_copy_region() local
571 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in r300_resource_copy_region()
574 layout = util_format_description(dst_templ.format)->layout; in r300_resource_copy_region()
581 !screen->is_format_supported(screen, dst_templ.format, dst->target, in r300_resource_copy_region()
584 switch (util_format_get_blocksize(dst_templ.format)) { in r300_resource_copy_region()
586 dst_templ.format = PIPE_FORMAT_I8_UNORM; in r300_resource_copy_region()
589 dst_templ.format = PIPE_FORMAT_B4G4R4A4_UNORM; in r300_resource_copy_region()
592 dst_templ.format = PIPE_FORMAT_B8G8R8A8_UNORM; in r300_resource_copy_region()
595 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UNORM; in r300_resource_copy_region()
600 util_format_short_name(dst_templ.format)); in r300_resource_copy_region()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_blit.c857 struct pipe_surface *dst_view, dst_templ; in si_resource_copy_region() local
895 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in si_resource_copy_region()
905 dst_templ.format = src_templ.format; in si_resource_copy_region()
929 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UINT; in si_resource_copy_region()
946 dst_templ.format = PIPE_FORMAT_R8_UNORM; in si_resource_copy_region()
950 dst_templ.format = PIPE_FORMAT_R8G8_UNORM; in si_resource_copy_region()
954 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM; in si_resource_copy_region()
958 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UINT; in si_resource_copy_region()
962 dst_templ.format = PIPE_FORMAT_R32G32B32A32_UINT; in si_resource_copy_region()
977 if (util_format_is_snorm8(dst_templ.format)) { in si_resource_copy_region()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_blitter.c1558 void util_blitter_default_dst_texture(struct pipe_surface *dst_templ, in util_blitter_default_dst_texture() argument
1563 memset(dst_templ, 0, sizeof(*dst_templ)); in util_blitter_default_dst_texture()
1564 dst_templ->format = util_format_linear(dst->format); in util_blitter_default_dst_texture()
1565 dst_templ->u.tex.level = dstlevel; in util_blitter_default_dst_texture()
1566 dst_templ->u.tex.first_layer = dstz; in util_blitter_default_dst_texture()
1567 dst_templ->u.tex.last_layer = dstz; in util_blitter_default_dst_texture()
1574 struct pipe_surface dst_templ; in util_blitter_get_next_surface_layer() local
1576 memset(&dst_templ, 0, sizeof(dst_templ)); in util_blitter_get_next_surface_layer()
1577 dst_templ.format = surf->format; in util_blitter_get_next_surface_layer()
1578 dst_templ.u.tex.level = surf->u.tex.level; in util_blitter_get_next_surface_layer()
[all …]
Du_blitter.h288 void util_blitter_default_dst_texture(struct pipe_surface *dst_templ,
/external/mesa3d/src/gallium/drivers/r600/
Dr600_blit.c681 struct pipe_surface *dst_view, dst_templ; in r600_resource_copy_region() local
714 util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); in r600_resource_copy_region()
725 dst_templ.format = src_templ.format; in r600_resource_copy_region()
750 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UINT; in r600_resource_copy_region()
767 dst_templ.format = PIPE_FORMAT_R8_UNORM; in r600_resource_copy_region()
771 dst_templ.format = PIPE_FORMAT_R8G8_UNORM; in r600_resource_copy_region()
775 dst_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM; in r600_resource_copy_region()
779 dst_templ.format = PIPE_FORMAT_R16G16B16A16_UINT; in r600_resource_copy_region()
783 dst_templ.format = PIPE_FORMAT_R32G32B32A32_UINT; in r600_resource_copy_region()
794 dst_view = r600_create_surface_custom(ctx, dst, &dst_templ, in r600_resource_copy_region()
/external/mesa3d/src/gallium/drivers/i915/
Di915_surface.c91 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()