Lines Matching refs:rdst
37 struct r600_resource *rdst = r600_resource(dst); in cik_sdma_copy_buffer() local
43 util_range_add(&rdst->valid_buffer_range, dst_offset, in cik_sdma_copy_buffer()
46 dst_offset += rdst->gpu_address; in cik_sdma_copy_buffer()
50 si_need_dma_space(&ctx->b, ncopy * 7, rdst, rsrc); in cik_sdma_copy_buffer()
78 struct r600_resource *rdst = r600_resource(dst); in cik_sdma_clear_buffer() local
89 util_range_add(&rdst->valid_buffer_range, offset, offset + size); in cik_sdma_clear_buffer()
91 offset += rdst->gpu_address; in cik_sdma_clear_buffer()
95 si_need_dma_space(&sctx->b, ncopy * 5, rdst, NULL); in cik_sdma_clear_buffer()
148 struct r600_texture *rdst = (struct r600_texture*)dst; in cik_sdma_copy_texture() local
149 unsigned bpp = rdst->surface.bpe; in cik_sdma_copy_texture()
150 uint64_t dst_address = rdst->resource.gpu_address + in cik_sdma_copy_texture()
151 rdst->surface.u.legacy.level[dst_level].offset; in cik_sdma_copy_texture()
154 unsigned dst_mode = rdst->surface.u.legacy.level[dst_level].mode; in cik_sdma_copy_texture()
156 unsigned dst_tile_index = rdst->surface.u.legacy.tiling_index[dst_level]; in cik_sdma_copy_texture()
163 rdst->surface.tile_swizzle : 0; in cik_sdma_copy_texture()
166 unsigned dst_pitch = rdst->surface.u.legacy.level[dst_level].nblk_x; in cik_sdma_copy_texture()
168 …uint64_t dst_slice_pitch = ((uint64_t)rdst->surface.u.legacy.level[dst_level].slice_size_dw * 4) /… in cik_sdma_copy_texture()
170 unsigned dst_width = minify_as_blocks(rdst->resource.b.b.width0, in cik_sdma_copy_texture()
171 dst_level, rdst->surface.blk_w); in cik_sdma_copy_texture()
174 unsigned dst_height = minify_as_blocks(rdst->resource.b.b.height0, in cik_sdma_copy_texture()
175 dst_level, rdst->surface.blk_h); in cik_sdma_copy_texture()
187 assert(rdst->surface.u.legacy.level[dst_level].offset + in cik_sdma_copy_texture()
189 rdst->resource.buf->size); in cik_sdma_copy_texture()
194 if (!si_prepare_for_dma_blit(&sctx->b, rdst, dst_level, dstx, dsty, in cik_sdma_copy_texture()
198 dstx /= rdst->surface.blk_w; in cik_sdma_copy_texture()
199 dsty /= rdst->surface.blk_h; in cik_sdma_copy_texture()
235 si_need_dma_space(&sctx->b, 13, &rdst->resource, &rsrc->resource); in cik_sdma_copy_texture()
262 struct r600_texture *tiled = src_mode >= RADEON_SURF_MODE_1D ? rsrc : rdst; in cik_sdma_copy_texture()
263 struct r600_texture *linear = tiled == rsrc ? rdst : rsrc; in cik_sdma_copy_texture()
396 uint32_t direction = linear == rdst ? 1u << 31 : 0; in cik_sdma_copy_texture()
398 si_need_dma_space(&sctx->b, 14, &rdst->resource, &rsrc->resource); in cik_sdma_copy_texture()
432 rdst->surface.u.legacy.tile_split <= 4096 && in cik_sdma_copy_texture()
492 si_need_dma_space(&sctx->b, 15, &rdst->resource, &rsrc->resource); in cik_sdma_copy_texture()
507 radeon_emit(cs, encode_tile_info(sctx, rdst, dst_level, false)); in cik_sdma_copy_texture()