Lines Matching refs:sctx
75 struct si_context *sctx = (struct si_context *)ctx; in cik_sdma_clear_buffer() local
76 struct radeon_winsys_cs *cs = sctx->b.dma.cs; in cik_sdma_clear_buffer()
95 si_need_dma_space(&sctx->b, ncopy * 5, rdst, NULL); in cik_sdma_clear_buffer()
104 radeon_emit(cs, sctx->b.chip_class >= GFX9 ? csize - 1 : csize); in cik_sdma_clear_buffer()
116 static unsigned encode_tile_info(struct si_context *sctx, in encode_tile_info() argument
120 struct radeon_info *info = &sctx->screen->info; in encode_tile_info()
138 static bool cik_sdma_copy_texture(struct si_context *sctx, in cik_sdma_copy_texture() argument
146 struct radeon_info *info = &sctx->screen->info; in cik_sdma_copy_texture()
194 if (!si_prepare_for_dma_blit(&sctx->b, rdst, dst_level, dstx, dsty, in cik_sdma_copy_texture()
224 (sctx->b.chip_class != CIK || in cik_sdma_copy_texture()
229 ((sctx->b.family != CHIP_BONAIRE && in cik_sdma_copy_texture()
230 sctx->b.family != CHIP_KAVERI) || in cik_sdma_copy_texture()
233 struct radeon_winsys_cs *cs = sctx->b.dma.cs; in cik_sdma_copy_texture()
235 si_need_dma_space(&sctx->b, 13, &rdst->resource, &rsrc->resource); in cik_sdma_copy_texture()
250 if (sctx->b.chip_class == CIK) { in cik_sdma_copy_texture()
301 if ((sctx->b.family == CHIP_BONAIRE || in cik_sdma_copy_texture()
302 sctx->b.family == CHIP_KAVERI) && in cik_sdma_copy_texture()
307 if (sctx->b.chip_class == CIK && in cik_sdma_copy_texture()
313 if ((sctx->b.family == CHIP_BONAIRE || in cik_sdma_copy_texture()
314 sctx->b.family == CHIP_KAVERI || in cik_sdma_copy_texture()
315 sctx->b.family == CHIP_KABINI || in cik_sdma_copy_texture()
316 sctx->b.family == CHIP_MULLINS) && in cik_sdma_copy_texture()
395 struct radeon_winsys_cs *cs = sctx->b.dma.cs; in cik_sdma_copy_texture()
398 si_need_dma_space(&sctx->b, 14, &rdst->resource, &rsrc->resource); in cik_sdma_copy_texture()
408 radeon_emit(cs, encode_tile_info(sctx, tiled, tiled_level, true)); in cik_sdma_copy_texture()
414 if (sctx->b.chip_class == CIK) { in cik_sdma_copy_texture()
439 (sctx->b.chip_class >= VI && in cik_sdma_copy_texture()
478 (sctx->b.chip_class != CIK || in cik_sdma_copy_texture()
483 ((sctx->b.family != CHIP_BONAIRE && in cik_sdma_copy_texture()
484 sctx->b.family != CHIP_KAVERI && in cik_sdma_copy_texture()
485 sctx->b.family != CHIP_KABINI && in cik_sdma_copy_texture()
486 sctx->b.family != CHIP_MULLINS) || in cik_sdma_copy_texture()
490 struct radeon_winsys_cs *cs = sctx->b.dma.cs; 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()
507 radeon_emit(cs, encode_tile_info(sctx, rdst, dst_level, false)); in cik_sdma_copy_texture()
508 if (sctx->b.chip_class == CIK) { in cik_sdma_copy_texture()
532 struct si_context *sctx = (struct si_context *)ctx; in cik_sdma_copy() local
534 if (!sctx->b.dma.cs || in cik_sdma_copy()
540 cik_sdma_copy_buffer(sctx, dst, src, dstx, src_box->x, src_box->width); in cik_sdma_copy()
544 if ((sctx->b.chip_class == CIK || sctx->b.chip_class == VI) && in cik_sdma_copy()
545 cik_sdma_copy_texture(sctx, dst, dst_level, dstx, dsty, dstz, in cik_sdma_copy()
554 void cik_init_sdma_functions(struct si_context *sctx) in cik_init_sdma_functions() argument
556 sctx->b.dma_copy = cik_sdma_copy; in cik_init_sdma_functions()
557 sctx->b.dma_clear_buffer = cik_sdma_clear_buffer; in cik_init_sdma_functions()