Lines Matching refs:rsrc
38 struct r600_resource *rsrc = r600_resource(src); in cik_sdma_copy_buffer() local
47 src_offset += rsrc->gpu_address; in cik_sdma_copy_buffer()
50 si_need_dma_space(&ctx->b, ncopy * 7, rdst, rsrc); in cik_sdma_copy_buffer()
147 struct r600_texture *rsrc = (struct r600_texture*)src; in cik_sdma_copy_texture() local
152 uint64_t src_address = rsrc->resource.gpu_address + in cik_sdma_copy_texture()
153 rsrc->surface.u.legacy.level[src_level].offset; in cik_sdma_copy_texture()
155 unsigned src_mode = rsrc->surface.u.legacy.level[src_level].mode; in cik_sdma_copy_texture()
157 unsigned src_tile_index = rsrc->surface.u.legacy.tiling_index[src_level]; in cik_sdma_copy_texture()
165 rsrc->surface.tile_swizzle : 0; in cik_sdma_copy_texture()
167 unsigned src_pitch = rsrc->surface.u.legacy.level[src_level].nblk_x; in cik_sdma_copy_texture()
169 …uint64_t src_slice_pitch = ((uint64_t)rsrc->surface.u.legacy.level[src_level].slice_size_dw * 4) /… in cik_sdma_copy_texture()
172 unsigned src_width = minify_as_blocks(rsrc->resource.b.b.width0, in cik_sdma_copy_texture()
173 src_level, rsrc->surface.blk_w); in cik_sdma_copy_texture()
176 unsigned src_height = minify_as_blocks(rsrc->resource.b.b.height0, in cik_sdma_copy_texture()
177 src_level, rsrc->surface.blk_h); in cik_sdma_copy_texture()
178 unsigned srcx = src_box->x / rsrc->surface.blk_w; in cik_sdma_copy_texture()
179 unsigned srcy = src_box->y / rsrc->surface.blk_h; in cik_sdma_copy_texture()
181 unsigned copy_width = DIV_ROUND_UP(src_box->width, rsrc->surface.blk_w); in cik_sdma_copy_texture()
182 unsigned copy_height = DIV_ROUND_UP(src_box->height, rsrc->surface.blk_h); in cik_sdma_copy_texture()
190 assert(rsrc->surface.u.legacy.level[src_level].offset + in cik_sdma_copy_texture()
192 rsrc->resource.buf->size); in cik_sdma_copy_texture()
195 dstz, rsrc, src_level, src_box)) 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()
264 unsigned tiled_level = tiled == rsrc ? src_level : dst_level; in cik_sdma_copy_texture()
265 unsigned linear_level = linear == rsrc ? src_level : dst_level; in cik_sdma_copy_texture()
266 unsigned tiled_x = tiled == rsrc ? srcx : dstx; in cik_sdma_copy_texture()
267 unsigned linear_x = linear == rsrc ? srcx : dstx; in cik_sdma_copy_texture()
268 unsigned tiled_y = tiled == rsrc ? srcy : dsty; in cik_sdma_copy_texture()
269 unsigned linear_y = linear == rsrc ? srcy : dsty; in cik_sdma_copy_texture()
270 unsigned tiled_z = tiled == rsrc ? srcz : dstz; in cik_sdma_copy_texture()
271 unsigned linear_z = linear == rsrc ? srcz : dstz; in cik_sdma_copy_texture()
272 unsigned tiled_width = tiled == rsrc ? src_width : dst_width; in cik_sdma_copy_texture()
273 unsigned linear_width = linear == rsrc ? src_width : dst_width; in cik_sdma_copy_texture()
274 unsigned tiled_pitch = tiled == rsrc ? src_pitch : dst_pitch; in cik_sdma_copy_texture()
275 unsigned linear_pitch = linear == rsrc ? src_pitch : dst_pitch; in cik_sdma_copy_texture()
276 unsigned tiled_slice_pitch = tiled == rsrc ? src_slice_pitch : dst_slice_pitch; in cik_sdma_copy_texture()
277 unsigned linear_slice_pitch = linear == rsrc ? src_slice_pitch : dst_slice_pitch; in cik_sdma_copy_texture()
278 uint64_t tiled_address = tiled == rsrc ? src_address : dst_address; in cik_sdma_copy_texture()
279 uint64_t linear_address = linear == rsrc ? src_address : dst_address; in cik_sdma_copy_texture()
280 unsigned tiled_micro_mode = tiled == rsrc ? src_micro_mode : dst_micro_mode; in cik_sdma_copy_texture()
398 si_need_dma_space(&sctx->b, 14, &rdst->resource, &rsrc->resource); in cik_sdma_copy_texture()
431 rsrc->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()
501 radeon_emit(cs, encode_tile_info(sctx, rsrc, src_level, true)); in cik_sdma_copy_texture()