• Home
  • Raw
  • Download

Lines Matching refs:sctx

78 	struct si_context *sctx = (struct si_context *)ctx;  in cik_sdma_clear_buffer()  local
79 struct radeon_winsys_cs *cs = sctx->b.dma.cs; in cik_sdma_clear_buffer()
97 r600_need_dma_space(&sctx->b, ncopy * 5, rdst, NULL); in cik_sdma_clear_buffer()
118 static unsigned encode_tile_info(struct si_context *sctx, in encode_tile_info() argument
122 struct radeon_info *info = &sctx->screen->b.info; in encode_tile_info()
140 static bool cik_sdma_copy_texture(struct si_context *sctx, in cik_sdma_copy_texture() argument
148 struct radeon_info *info = &sctx->screen->b.info; in cik_sdma_copy_texture()
192 if (!r600_prepare_for_dma_blit(&sctx->b, rdst, dst_level, dstx, dsty, in cik_sdma_copy_texture()
219 (sctx->b.chip_class != CIK || in cik_sdma_copy_texture()
224 ((sctx->b.family != CHIP_BONAIRE && in cik_sdma_copy_texture()
225 sctx->b.family != CHIP_KAVERI) || in cik_sdma_copy_texture()
228 struct radeon_winsys_cs *cs = sctx->b.dma.cs; in cik_sdma_copy_texture()
230 r600_need_dma_space(&sctx->b, 13, &rdst->resource, &rsrc->resource); in cik_sdma_copy_texture()
245 if (sctx->b.chip_class == CIK) { in cik_sdma_copy_texture()
296 if ((sctx->b.family == CHIP_BONAIRE || in cik_sdma_copy_texture()
297 sctx->b.family == CHIP_KAVERI) && in cik_sdma_copy_texture()
302 if (sctx->b.chip_class == CIK && in cik_sdma_copy_texture()
308 if ((sctx->b.family == CHIP_BONAIRE || in cik_sdma_copy_texture()
309 sctx->b.family == CHIP_KAVERI || in cik_sdma_copy_texture()
310 sctx->b.family == CHIP_KABINI || in cik_sdma_copy_texture()
311 sctx->b.family == CHIP_MULLINS) && in cik_sdma_copy_texture()
390 struct radeon_winsys_cs *cs = sctx->b.dma.cs; in cik_sdma_copy_texture()
393 r600_need_dma_space(&sctx->b, 14, &rdst->resource, &rsrc->resource); in cik_sdma_copy_texture()
403 radeon_emit(cs, encode_tile_info(sctx, tiled, tiled_level, true)); in cik_sdma_copy_texture()
409 if (sctx->b.chip_class == CIK) { in cik_sdma_copy_texture()
434 (sctx->b.chip_class == VI && in cik_sdma_copy_texture()
473 (sctx->b.chip_class != CIK || in cik_sdma_copy_texture()
478 ((sctx->b.family != CHIP_BONAIRE && in cik_sdma_copy_texture()
479 sctx->b.family != CHIP_KAVERI && in cik_sdma_copy_texture()
480 sctx->b.family != CHIP_KABINI && in cik_sdma_copy_texture()
481 sctx->b.family != CHIP_MULLINS) || in cik_sdma_copy_texture()
485 struct radeon_winsys_cs *cs = sctx->b.dma.cs; in cik_sdma_copy_texture()
487 r600_need_dma_space(&sctx->b, 15, &rdst->resource, &rsrc->resource); in cik_sdma_copy_texture()
496 radeon_emit(cs, encode_tile_info(sctx, rsrc, src_level, true)); in cik_sdma_copy_texture()
502 radeon_emit(cs, encode_tile_info(sctx, rdst, dst_level, false)); in cik_sdma_copy_texture()
503 if (sctx->b.chip_class == CIK) { in cik_sdma_copy_texture()
527 struct si_context *sctx = (struct si_context *)ctx; in cik_sdma_copy() local
529 if (!sctx->b.dma.cs) in cik_sdma_copy()
533 cik_sdma_copy_buffer(sctx, dst, src, dstx, src_box->x, src_box->width); in cik_sdma_copy()
537 if (cik_sdma_copy_texture(sctx, dst, dst_level, dstx, dsty, dstz, in cik_sdma_copy()
546 void cik_init_sdma_functions(struct si_context *sctx) in cik_init_sdma_functions() argument
548 sctx->b.dma_copy = cik_sdma_copy; in cik_init_sdma_functions()
549 sctx->b.dma_clear_buffer = cik_sdma_clear_buffer; in cik_init_sdma_functions()