• Home
  • Raw
  • Download

Lines Matching refs:surface

39    unsigned tile_index = tex->surface.u.legacy.tiling_index[level];  in encode_tile_info()
40 unsigned macro_tile_index = tex->surface.u.legacy.macro_tile_index; in encode_tile_info()
44 return (set_bpp ? util_logbase2(tex->surface.bpe) : 0) | (G_009910_ARRAY_MODE(tile_mode) << 3) | in encode_tile_info()
47 ((util_logbase2(tex->surface.u.legacy.tile_split >> 6)) << 11) | in encode_tile_info()
63 unsigned bpp = sdst->surface.bpe; in si_sdma_v4_copy_texture()
64 uint64_t dst_address = sdst->buffer.gpu_address + sdst->surface.u.gfx9.surf_offset; in si_sdma_v4_copy_texture()
65 uint64_t src_address = ssrc->buffer.gpu_address + ssrc->surface.u.gfx9.surf_offset; in si_sdma_v4_copy_texture()
66 unsigned dst_pitch = sdst->surface.u.gfx9.surf_pitch; in si_sdma_v4_copy_texture()
67 unsigned src_pitch = ssrc->surface.u.gfx9.surf_pitch; in si_sdma_v4_copy_texture()
68 uint64_t dst_slice_pitch = ((uint64_t)sdst->surface.u.gfx9.surf_slice_size) / bpp; in si_sdma_v4_copy_texture()
69 uint64_t src_slice_pitch = ((uint64_t)ssrc->surface.u.gfx9.surf_slice_size) / bpp; in si_sdma_v4_copy_texture()
70 unsigned srcx = src_box->x / ssrc->surface.blk_w; in si_sdma_v4_copy_texture()
71 unsigned srcy = src_box->y / ssrc->surface.blk_h; in si_sdma_v4_copy_texture()
73 unsigned copy_width = DIV_ROUND_UP(src_box->width, ssrc->surface.blk_w); in si_sdma_v4_copy_texture()
74 unsigned copy_height = DIV_ROUND_UP(src_box->height, ssrc->surface.blk_h); in si_sdma_v4_copy_texture()
80 assert(sdst->surface.u.gfx9.surf_offset + dst_slice_pitch * bpp * (dstz + src_box->depth) <= in si_sdma_v4_copy_texture()
82 assert(ssrc->surface.u.gfx9.surf_offset + src_slice_pitch * bpp * (srcz + src_box->depth) <= in si_sdma_v4_copy_texture()
88 dstx /= sdst->surface.blk_w; in si_sdma_v4_copy_texture()
89 dsty /= sdst->surface.blk_h; in si_sdma_v4_copy_texture()
96 if (ssrc->surface.is_linear && sdst->surface.is_linear) { in si_sdma_v4_copy_texture()
107 src_address += ssrc->surface.u.gfx9.offset[src_level]; in si_sdma_v4_copy_texture()
108 dst_address += sdst->surface.u.gfx9.offset[dst_level]; in si_sdma_v4_copy_texture()
134 if (ssrc->surface.is_linear != sdst->surface.is_linear) { in si_sdma_v4_copy_texture()
135 struct si_texture *tiled = ssrc->surface.is_linear ? sdst : ssrc; in si_sdma_v4_copy_texture()
146 ? DIV_ROUND_UP(ssrc->buffer.b.b.width0, ssrc->surface.blk_w) in si_sdma_v4_copy_texture()
147 : DIV_ROUND_UP(sdst->buffer.b.b.width0, sdst->surface.blk_w); in si_sdma_v4_copy_texture()
149 ? DIV_ROUND_UP(ssrc->buffer.b.b.height0, ssrc->surface.blk_h) in si_sdma_v4_copy_texture()
150 : DIV_ROUND_UP(sdst->buffer.b.b.height0, sdst->surface.blk_h); in si_sdma_v4_copy_texture()
158 linear_address += linear->surface.u.gfx9.offset[linear_level]; in si_sdma_v4_copy_texture()
185 radeon_emit(cs, util_logbase2(bpp) | tiled->surface.u.gfx9.surf.swizzle_mode << 3 | in si_sdma_v4_copy_texture()
186 tiled->surface.u.gfx9.resource_type << 9 | in si_sdma_v4_copy_texture()
187 tiled->surface.u.gfx9.surf.epitch << 16); in si_sdma_v4_copy_texture()
209 unsigned bpp = sdst->surface.bpe; in cik_sdma_copy_texture()
210 uint64_t dst_address = sdst->buffer.gpu_address + sdst->surface.u.legacy.level[dst_level].offset; in cik_sdma_copy_texture()
211 uint64_t src_address = ssrc->buffer.gpu_address + ssrc->surface.u.legacy.level[src_level].offset; in cik_sdma_copy_texture()
212 unsigned dst_mode = sdst->surface.u.legacy.level[dst_level].mode; in cik_sdma_copy_texture()
213 unsigned src_mode = ssrc->surface.u.legacy.level[src_level].mode; in cik_sdma_copy_texture()
214 unsigned dst_tile_index = sdst->surface.u.legacy.tiling_index[dst_level]; in cik_sdma_copy_texture()
215 unsigned src_tile_index = ssrc->surface.u.legacy.tiling_index[src_level]; in cik_sdma_copy_texture()
220 unsigned dst_tile_swizzle = dst_mode == RADEON_SURF_MODE_2D ? sdst->surface.tile_swizzle : 0; in cik_sdma_copy_texture()
221 unsigned src_tile_swizzle = src_mode == RADEON_SURF_MODE_2D ? ssrc->surface.tile_swizzle : 0; in cik_sdma_copy_texture()
222 unsigned dst_pitch = sdst->surface.u.legacy.level[dst_level].nblk_x; in cik_sdma_copy_texture()
223 unsigned src_pitch = ssrc->surface.u.legacy.level[src_level].nblk_x; in cik_sdma_copy_texture()
225 ((uint64_t)sdst->surface.u.legacy.level[dst_level].slice_size_dw * 4) / bpp; in cik_sdma_copy_texture()
227 ((uint64_t)ssrc->surface.u.legacy.level[src_level].slice_size_dw * 4) / bpp; in cik_sdma_copy_texture()
228 unsigned dst_width = minify_as_blocks(sdst->buffer.b.b.width0, dst_level, sdst->surface.blk_w); in cik_sdma_copy_texture()
229 unsigned src_width = minify_as_blocks(ssrc->buffer.b.b.width0, src_level, ssrc->surface.blk_w); in cik_sdma_copy_texture()
230 unsigned dst_height = minify_as_blocks(sdst->buffer.b.b.height0, dst_level, sdst->surface.blk_h); in cik_sdma_copy_texture()
231 unsigned src_height = minify_as_blocks(ssrc->buffer.b.b.height0, src_level, ssrc->surface.blk_h); in cik_sdma_copy_texture()
232 unsigned srcx = src_box->x / ssrc->surface.blk_w; in cik_sdma_copy_texture()
233 unsigned srcy = src_box->y / ssrc->surface.blk_h; in cik_sdma_copy_texture()
235 unsigned copy_width = DIV_ROUND_UP(src_box->width, ssrc->surface.blk_w); in cik_sdma_copy_texture()
236 unsigned copy_height = DIV_ROUND_UP(src_box->height, ssrc->surface.blk_h); in cik_sdma_copy_texture()
241 assert(sdst->surface.u.legacy.level[dst_level].offset + in cik_sdma_copy_texture()
244 assert(ssrc->surface.u.legacy.level[src_level].offset + in cik_sdma_copy_texture()
251 dstx /= sdst->surface.blk_w; in cik_sdma_copy_texture()
252 dsty /= sdst->surface.blk_h; in cik_sdma_copy_texture()
386 linear->surface.u.legacy.level[linear_level].offset + in cik_sdma_copy_texture()
391 linear->surface.u.legacy.level[linear_level].offset + in cik_sdma_copy_texture()
398 if (start_linear_address < 0 || end_linear_address > linear->surface.surf_size) in cik_sdma_copy_texture()
406 tiled->surface.u.legacy.tile_split <= 4096 && pitch_tile_max < (1 << 11) && in cik_sdma_copy_texture()
444 ssrc->surface.u.legacy.tile_split <= 4096 && sdst->surface.u.legacy.tile_split <= 4096 && in cik_sdma_copy_texture()