Lines Matching refs:sctx
633 void cik_init_sdma_functions(struct si_context *sctx);
646 void si_init_blit_functions(struct si_context *sctx);
647 void si_decompress_textures(struct si_context *sctx, unsigned shader_mask);
657 void vi_dcc_clear_level(struct si_context *sctx,
660 void si_init_clear_functions(struct si_context *sctx);
683 void si_copy_buffer(struct si_context *sctx,
687 void cik_prefetch_TC_L2_async(struct si_context *sctx, struct pipe_resource *buf,
689 void cik_emit_prefetch_L2(struct si_context *sctx);
690 void si_init_cp_dma_functions(struct si_context *sctx);
694 void si_log_hw_flush(struct si_context *sctx);
695 void si_log_draw_state(struct si_context *sctx, struct u_log_context *log);
696 void si_log_compute_state(struct si_context *sctx, struct u_log_context *log);
697 void si_init_debug_functions(struct si_context *sctx);
703 void si_init_dma_functions(struct si_context *sctx);
723 void si_init_compute_functions(struct si_context *sctx);
761 si_invalidate_draw_sh_constants(struct si_context *sctx) in si_invalidate_draw_sh_constants() argument
763 sctx->last_base_vertex = SI_BASE_VERTEX_UNKNOWN; in si_invalidate_draw_sh_constants()
767 si_set_atom_dirty(struct si_context *sctx, in si_set_atom_dirty() argument
773 sctx->dirty_atoms |= bit; in si_set_atom_dirty()
775 sctx->dirty_atoms &= ~bit; in si_set_atom_dirty()
779 si_is_atom_dirty(struct si_context *sctx, in si_is_atom_dirty() argument
784 return sctx->dirty_atoms & bit; in si_is_atom_dirty()
788 si_mark_atom_dirty(struct si_context *sctx, in si_mark_atom_dirty() argument
791 si_set_atom_dirty(sctx, atom, true); in si_mark_atom_dirty()
794 static inline struct si_shader_ctx_state *si_get_vs(struct si_context *sctx) in si_get_vs() argument
796 if (sctx->gs_shader.cso) in si_get_vs()
797 return &sctx->gs_shader; in si_get_vs()
798 if (sctx->tes_shader.cso) in si_get_vs()
799 return &sctx->tes_shader; in si_get_vs()
801 return &sctx->vs_shader; in si_get_vs()
804 static inline struct tgsi_shader_info *si_get_vs_info(struct si_context *sctx) in si_get_vs_info() argument
806 struct si_shader_ctx_state *vs = si_get_vs(sctx); in si_get_vs_info()
811 static inline struct si_shader* si_get_vs_state(struct si_context *sctx) in si_get_vs_state() argument
813 if (sctx->gs_shader.cso) in si_get_vs_state()
814 return sctx->gs_shader.cso->gs_copy_shader; in si_get_vs_state()
816 struct si_shader_ctx_state *vs = si_get_vs(sctx); in si_get_vs_state()
833 static inline bool si_get_strmout_en(struct si_context *sctx) in si_get_strmout_en() argument
835 return sctx->streamout.streamout_enabled || in si_get_strmout_en()
836 sctx->streamout.prims_gen_query_enabled; in si_get_strmout_en()
840 si_optimal_tcc_alignment(struct si_context *sctx, unsigned upload_size) in si_optimal_tcc_alignment() argument
850 tcc_cache_line_size = sctx->screen->info.tcc_cache_line_size; in si_optimal_tcc_alignment()
864 si_make_CB_shader_coherent(struct si_context *sctx, unsigned num_samples, in si_make_CB_shader_coherent() argument
867 sctx->b.flags |= SI_CONTEXT_FLUSH_AND_INV_CB | in si_make_CB_shader_coherent()
870 if (sctx->b.chip_class >= GFX9) { in si_make_CB_shader_coherent()
876 sctx->b.flags |= SI_CONTEXT_INV_GLOBAL_L2; in si_make_CB_shader_coherent()
878 sctx->b.flags |= SI_CONTEXT_INV_L2_METADATA; in si_make_CB_shader_coherent()
881 sctx->b.flags |= SI_CONTEXT_INV_GLOBAL_L2; in si_make_CB_shader_coherent()
886 si_make_DB_shader_coherent(struct si_context *sctx, unsigned num_samples, in si_make_DB_shader_coherent() argument
889 sctx->b.flags |= SI_CONTEXT_FLUSH_AND_INV_DB | in si_make_DB_shader_coherent()
892 if (sctx->b.chip_class >= GFX9) { in si_make_DB_shader_coherent()
898 sctx->b.flags |= SI_CONTEXT_INV_GLOBAL_L2; in si_make_DB_shader_coherent()
900 sctx->b.flags |= SI_CONTEXT_INV_L2_METADATA; in si_make_DB_shader_coherent()
903 sctx->b.flags |= SI_CONTEXT_INV_GLOBAL_L2; in si_make_DB_shader_coherent()