Home | History | Annotate | Download | only in radeonsi

Lines Matching refs:sctx

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