Lines Matching refs:rctx
47 struct r600_context *rctx = (struct r600_context *)ctx; in r600_blitter_begin() local
49 r600_context_queries_suspend(rctx); in r600_blitter_begin()
51 util_blitter_save_blend(rctx->blitter, rctx->queued.named.blend); in r600_blitter_begin()
52 util_blitter_save_depth_stencil_alpha(rctx->blitter, rctx->queued.named.dsa); in r600_blitter_begin()
53 util_blitter_save_stencil_ref(rctx->blitter, &rctx->stencil_ref); in r600_blitter_begin()
54 util_blitter_save_rasterizer(rctx->blitter, rctx->queued.named.rasterizer); in r600_blitter_begin()
55 util_blitter_save_fragment_shader(rctx->blitter, rctx->ps_shader); in r600_blitter_begin()
56 util_blitter_save_vertex_shader(rctx->blitter, rctx->vs_shader); in r600_blitter_begin()
57 util_blitter_save_vertex_elements(rctx->blitter, rctx->vertex_elements); in r600_blitter_begin()
58 if (rctx->queued.named.viewport) { in r600_blitter_begin()
59 util_blitter_save_viewport(rctx->blitter, &rctx->queued.named.viewport->viewport); in r600_blitter_begin()
61 util_blitter_save_vertex_buffers(rctx->blitter, in r600_blitter_begin()
62 rctx->nr_vertex_buffers, in r600_blitter_begin()
63 rctx->vertex_buffer); in r600_blitter_begin()
64 util_blitter_save_so_targets(rctx->blitter, rctx->num_so_targets, in r600_blitter_begin()
65 (struct pipe_stream_output_target**)rctx->so_targets); in r600_blitter_begin()
68 util_blitter_save_framebuffer(rctx->blitter, &rctx->framebuffer); in r600_blitter_begin()
72 rctx->blitter, rctx->ps_samplers.n_samplers, in r600_blitter_begin()
73 (void**)rctx->ps_samplers.samplers); in r600_blitter_begin()
76 rctx->blitter, rctx->ps_samplers.n_views, in r600_blitter_begin()
77 (struct pipe_sampler_view**)rctx->ps_samplers.views); in r600_blitter_begin()
80 if ((op & R600_DISABLE_RENDER_COND) && rctx->current_render_cond) { in r600_blitter_begin()
81 rctx->saved_render_cond = rctx->current_render_cond; in r600_blitter_begin()
82 rctx->saved_render_cond_mode = rctx->current_render_cond_mode; in r600_blitter_begin()
83 rctx->context.render_condition(&rctx->context, NULL, 0); in r600_blitter_begin()
90 struct r600_context *rctx = (struct r600_context *)ctx; in r600_blitter_end() local
91 if (rctx->saved_render_cond) { in r600_blitter_end()
92 rctx->context.render_condition(&rctx->context, in r600_blitter_end()
93 rctx->saved_render_cond, in r600_blitter_end()
94 rctx->saved_render_cond_mode); in r600_blitter_end()
95 rctx->saved_render_cond = NULL; in r600_blitter_end()
97 r600_context_queries_resume(rctx); in r600_blitter_end()
118 struct r600_context *rctx = (struct r600_context *)ctx; in si_blit_uncompress_depth() local
145 …util_blitter_custom_depth_stencil(rctx->blitter, zsurf, cbsurf, ~0, rctx->custom_dsa_flush, depth); in si_blit_uncompress_depth()
156 void si_flush_depth_textures(struct r600_context *rctx) in si_flush_depth_textures() argument
162 for (i = 0; i < rctx->ps_samplers.n_views; ++i) { in si_flush_depth_textures()
166 view = rctx->ps_samplers.views[i]; in si_flush_depth_textures()
176 si_blit_uncompress_depth(&rctx->context, tex); in si_flush_depth_textures()
180 for (i = 0; i < rctx->framebuffer.nr_cbufs; i++) { in si_flush_depth_textures()
182 tex = (struct r600_resource_texture *)rctx->framebuffer.cbufs[i]->texture; in si_flush_depth_textures()
190 si_blit_uncompress_depth(&rctx->context, tex); in si_flush_depth_textures()
198 struct r600_context *rctx = (struct r600_context *)ctx; in r600_clear() local
199 struct pipe_framebuffer_state *fb = &rctx->framebuffer; in r600_clear()
202 util_blitter_clear(rctx->blitter, fb->width, fb->height, in r600_clear()
214 struct r600_context *rctx = (struct r600_context *)ctx; in r600_clear_render_target() local
217 util_blitter_clear_render_target(rctx->blitter, dst, color, in r600_clear_render_target()
230 struct r600_context *rctx = (struct r600_context *)ctx; in r600_clear_depth_stencil() local
233 util_blitter_clear_depth_stencil(rctx->blitter, dst, clear_flags, depth, stencil, in r600_clear_depth_stencil()
249 struct r600_context *rctx = (struct r600_context *)ctx; in r600_hw_copy_region() local
252 util_blitter_copy_texture(rctx->blitter, dst, dst_level, ~0, dstx, dsty, dstz, in r600_hw_copy_region()
377 void si_init_blit_functions(struct r600_context *rctx) in si_init_blit_functions() argument
379 rctx->context.clear = r600_clear; in si_init_blit_functions()
380 rctx->context.clear_render_target = r600_clear_render_target; in si_init_blit_functions()
381 rctx->context.clear_depth_stencil = r600_clear_depth_stencil; in si_init_blit_functions()
382 rctx->context.resource_copy_region = r600_resource_copy_region; in si_init_blit_functions()