Lines Matching refs:dst

41                     struct pipe_resource *dst, unsigned dst_level,
54 for (unsigned i = 0; i < MAX2(src->nr_samples, dst->nr_samples); i++) {
64 dst, 0, PIPE_MAP_WRITE, i,
86 struct pipe_resource *dst, unsigned dst_level,
92 dst, dst_level,
105 if (dst->nr_samples > 1 &&
106 (dst->nr_samples == src->nr_samples ||
107 (src->nr_samples == 1 && dst->nr_samples > 1))) {
108 lp_resource_copy_ms(pipe, dst, dst_level, dstx, dsty, dstz,
112 util_resource_copy_region(pipe, dst, dst_level, dstx, dsty, dstz,
131 blit_info->dst.resource->format == blit_info->dst.format &&
132 blit_info->src.format == blit_info->dst.format &&
134 blit_info->dst.resource->nr_samples < 2 &&
136 util_resource_copy_region(pipe, blit_info->dst.resource, blit_info->dst.level, blit_info->dst.box.x, blit_info->dst.box.y, blit_info->dst.box.z,
144 util_format_short_name(info.dst.resource->format));
151 blit_info->dst.format == PIPE_FORMAT_Z32_UNORM && info.filter == PIPE_TEX_FILTER_NEAREST) {
153 info.dst.format = PIPE_FORMAT_R32_UINT;
314 struct pipe_surface *dst,
325 width = MIN2(width, dst->texture->width0 - dstx);
326 height = MIN2(height, dst->texture->height0 - dsty);
328 if (dst->texture->nr_samples > 1) {
331 if (dst->texture->target != PIPE_BUFFER) {
332 box.z = dst->u.tex.first_layer;
333 box.depth = dst->u.tex.last_layer - dst->u.tex.first_layer + 1;
335 for (unsigned s = 0; s < util_res_sample_count(dst->texture); s++) {
336 lp_clear_color_texture_msaa(pipe, dst->texture, dst->format,
340 util_clear_render_target(pipe, dst, color,
383 struct pipe_surface *dst,
396 width = MIN2(width, dst->texture->width0 - dstx);
397 height = MIN2(height, dst->texture->height0 - dsty);
399 if (dst->texture->nr_samples > 1) {
400 uint64_t zstencil = util_pack64_z_stencil(dst->format, depth, stencil);
403 if (dst->texture->target != PIPE_BUFFER) {
404 box.z = dst->u.tex.first_layer;
405 box.depth = dst->u.tex.last_layer - dst->u.tex.first_layer + 1;
407 for (unsigned s = 0; s < util_res_sample_count(dst->texture); s++)
408 lp_clear_depth_stencil_texture_msaa(pipe, dst->texture,
409 dst->format, clear_flags,
412 util_clear_depth_stencil(pipe, dst, clear_flags,
473 char *dst;
476 dst = pipe->buffer_map(pipe,
485 memset(dst, *(uint8_t *)clear_value, size);
488 util_memset32(dst, *(uint32_t *)clear_value, size / 4);
492 memcpy(&dst[i], clear_value, clear_value_size);