Lines Matching refs:tmpl
538 struct pipe_resource tmpl = res->base; in transfer_image_to_buf() local
539 tmpl.nr_samples = 0; in transfer_image_to_buf()
540 resolved_resource = d3d12_resource_create(ctx->base.screen, &tmpl); in transfer_image_to_buf()
550 resolve_info.mask = util_format_get_mask(tmpl.format); in transfer_image_to_buf()
660 local_resource(pipe_screen *s, struct pipe_resource *tmpl) : in local_resource()
663 res = d3d12_resource(d3d12_resource_create(s, tmpl)); in local_resource()
728 struct pipe_resource tmpl; in read_zs_surface() local
729 memset(&tmpl, 0, sizeof tmpl); in read_zs_surface()
730 tmpl.target = PIPE_BUFFER; in read_zs_surface()
731 tmpl.format = PIPE_FORMAT_R32_UNORM; in read_zs_surface()
732 tmpl.bind = 0; in read_zs_surface()
733 tmpl.usage = PIPE_USAGE_STAGING; in read_zs_surface()
734 tmpl.flags = 0; in read_zs_surface()
735 tmpl.width0 = trans->base.layer_stride; in read_zs_surface()
736 tmpl.height0 = 1; in read_zs_surface()
737 tmpl.depth0 = 1; in read_zs_surface()
738 tmpl.array_size = 1; in read_zs_surface()
740 local_resource depth_buffer(pscreen, &tmpl); in read_zs_surface()
749 tmpl.format = PIPE_FORMAT_R8_UINT; in read_zs_surface()
751 local_resource stencil_buffer(pscreen, &tmpl); in read_zs_surface()
820 struct pipe_resource tmpl; in write_zs_surface() local
821 memset(&tmpl, 0, sizeof tmpl); in write_zs_surface()
822 tmpl.target = PIPE_BUFFER; in write_zs_surface()
823 tmpl.format = PIPE_FORMAT_R32_UNORM; in write_zs_surface()
824 tmpl.bind = 0; in write_zs_surface()
825 tmpl.usage = PIPE_USAGE_STAGING; in write_zs_surface()
826 tmpl.flags = 0; in write_zs_surface()
827 tmpl.width0 = trans->base.layer_stride; in write_zs_surface()
828 tmpl.height0 = 1; in write_zs_surface()
829 tmpl.depth0 = 1; in write_zs_surface()
830 tmpl.array_size = 1; in write_zs_surface()
832 local_resource depth_buffer(pctx->screen, &tmpl); in write_zs_surface()
838 local_resource stencil_buffer(pctx->screen, &tmpl); in write_zs_surface()