Home
last modified time | relevance | path

Searched refs:rctx (Results 1 – 25 of 34) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/r600/
Dr600_state_common.c37 static void r600_emit_command_buffer(struct r600_context *rctx, struct r600_atom *atom) in r600_emit_command_buffer() argument
39 struct radeon_winsys_cs *cs = rctx->cs; in r600_emit_command_buffer()
61 static void r600_emit_surface_sync(struct r600_context *rctx, struct r600_atom *atom) in r600_emit_surface_sync() argument
63 struct radeon_winsys_cs *cs = rctx->cs; in r600_emit_surface_sync()
75 static void r600_emit_r6xx_flush_and_inv(struct r600_context *rctx, struct r600_atom *atom) in r600_emit_r6xx_flush_and_inv() argument
77 struct radeon_winsys_cs *cs = rctx->cs; in r600_emit_r6xx_flush_and_inv()
91 static void r600_emit_alphatest_state(struct r600_context *rctx, struct r600_atom *atom) in r600_emit_alphatest_state() argument
93 struct radeon_winsys_cs *cs = rctx->cs; in r600_emit_alphatest_state()
97 if (rctx->chip_class >= EVERGREEN && a->cb0_export_16bpc) { in r600_emit_alphatest_state()
107 void r600_init_common_atoms(struct r600_context *rctx) in r600_init_common_atoms() argument
[all …]
Dr600_pipe.c39 static struct r600_fence *r600_create_fence(struct r600_context *rctx) in r600_create_fence() argument
41 struct r600_screen *rscreen = rctx->screen; in r600_create_fence()
55 rscreen->fences.data = rctx->ws->buffer_map(rscreen->fences.bo->cs_buf, in r600_create_fence()
56 rctx->cs, in r600_create_fence()
103 r600_context_emit_fence(rctx, rscreen->fences.bo, fence->index, 1); in r600_create_fence()
107 pipe_buffer_create(&rctx->screen->screen, PIPE_BIND_CUSTOM, in r600_create_fence()
110 r600_context_bo_reloc(rctx, fence->sleep_bo, RADEON_USAGE_READWRITE); in r600_create_fence()
121 struct r600_context *rctx = (struct r600_context *)ctx; in r600_flush() local
127 *rfence = r600_create_fence(rctx); in r600_flush()
130 if (rctx->current_render_cond) { in r600_flush()
[all …]
Dr600_blit.c51 struct r600_context *rctx = (struct r600_context *)ctx; in r600_blitter_begin() local
53 r600_suspend_nontimer_queries(rctx); in r600_blitter_begin()
55 util_blitter_save_vertex_buffers(rctx->blitter, in r600_blitter_begin()
56 util_last_bit(rctx->vertex_buffer_state.enabled_mask), in r600_blitter_begin()
57 rctx->vertex_buffer_state.vb); in r600_blitter_begin()
58 util_blitter_save_vertex_elements(rctx->blitter, rctx->vertex_elements); in r600_blitter_begin()
59 util_blitter_save_vertex_shader(rctx->blitter, rctx->vs_shader); in r600_blitter_begin()
60 util_blitter_save_so_targets(rctx->blitter, rctx->num_so_targets, in r600_blitter_begin()
61 (struct pipe_stream_output_target**)rctx->so_targets); in r600_blitter_begin()
62 util_blitter_save_rasterizer(rctx->blitter, rctx->states[R600_PIPE_STATE_RASTERIZER]); in r600_blitter_begin()
[all …]
Dr600_state.c644 void r600_polygon_offset_update(struct r600_context *rctx) in r600_polygon_offset_update() argument
650 if (rctx->rasterizer && rctx->framebuffer.zsbuf) { in r600_polygon_offset_update()
651 float offset_units = rctx->rasterizer->offset_units; in r600_polygon_offset_update()
654 switch (rctx->framebuffer.zsbuf->format) { in r600_polygon_offset_update()
677 fui(rctx->rasterizer->offset_scale)); in r600_polygon_offset_update()
683 fui(rctx->rasterizer->offset_scale)); in r600_polygon_offset_update()
690 r600_context_pipe_state_set(rctx, &state); in r600_polygon_offset_update()
698 struct r600_context *rctx = (struct r600_context *)ctx; in r600_create_blend_state_mode() local
711 if (rctx->family > CHIP_R600) in r600_create_blend_state_mode()
773 if (rctx->family > CHIP_R600) in r600_create_blend_state_mode()
[all …]
Dr600_buffer.c46 struct r600_context *rctx = (struct r600_context*)ctx; in r600_get_transfer() local
47 struct r600_transfer *transfer = util_slab_alloc(&rctx->pool_transfers); in r600_get_transfer()
67 static void r600_set_constants_dirty_if_bound(struct r600_context *rctx, in r600_set_constants_dirty_if_bound() argument
82 r600_constant_buffers_dirty(rctx, state); in r600_set_constants_dirty_if_bound()
90 struct r600_context *rctx = (struct r600_context*)pipe; in r600_buffer_transfer_map() local
98 if (rctx->ws->cs_is_buffer_referenced(rctx->cs, rbuffer->cs_buf, RADEON_USAGE_READWRITE) || in r600_buffer_transfer_map()
99 rctx->ws->buffer_is_busy(rbuffer->buf, RADEON_USAGE_READWRITE)) { in r600_buffer_transfer_map()
107 r600_init_resource(rctx->screen, rbuffer, rbuffer->b.b.width0, 4096, in r600_buffer_transfer_map()
112 mask = rctx->vertex_buffer_state.enabled_mask; in r600_buffer_transfer_map()
115 if (rctx->vertex_buffer_state.vb[i].buffer == &rbuffer->b.b) { in r600_buffer_transfer_map()
[all …]
Devergreen_state.c686 struct r600_context *rctx = (struct r600_context *)ctx; in evergreen_create_blend_state_mode() local
780 struct r600_context *rctx = (struct r600_context *)ctx; in evergreen_create_dsa_state() local
837 struct r600_context *rctx = (struct r600_context *)ctx; in evergreen_create_rs_state() local
911 if (rctx->chip_class == CAYMAN) { in evergreen_create_rs_state()
1134 struct r600_context *rctx = (struct r600_context *)ctx; in evergreen_set_clip_state() local
1141 rctx->clip = *state; in evergreen_set_clip_state()
1158 free(rctx->states[R600_PIPE_STATE_CLIP]); in evergreen_set_clip_state()
1159 rctx->states[R600_PIPE_STATE_CLIP] = rstate; in evergreen_set_clip_state()
1160 r600_context_pipe_state_set(rctx, rstate); in evergreen_set_clip_state()
1175 static void evergreen_get_scissor_rect(struct r600_context *rctx, in evergreen_get_scissor_rect() argument
[all …]
Dr600_query.c253 struct r600_context *rctx = (struct r600_context *)ctx; in r600_create_query() local
266 query->result_size = 16 * rctx->max_db; in r600_create_query()
291 query->buffer.buf = r600_new_query_buffer(rctx, query_type); in r600_create_query()
316 static void r600_update_occlusion_query_state(struct r600_context *rctx, in r600_update_occlusion_query_state() argument
323 rctx->num_occlusion_queries += diff; in r600_update_occlusion_query_state()
324 assert(rctx->num_occlusion_queries >= 0); in r600_update_occlusion_query_state()
326 enable = rctx->num_occlusion_queries != 0; in r600_update_occlusion_query_state()
328 if (rctx->db_misc_state.occlusion_query_enabled != enable) { in r600_update_occlusion_query_state()
329 rctx->db_misc_state.occlusion_query_enabled = enable; in r600_update_occlusion_query_state()
330 r600_atom_dirty(rctx, &rctx->db_misc_state.atom); in r600_update_occlusion_query_state()
[all …]
Dr600_pipe.h467 static INLINE void r600_emit_atom(struct r600_context *rctx, struct r600_atom *atom) in r600_emit_atom() argument
469 atom->emit(rctx, atom); in r600_emit_atom()
475 static INLINE void r600_atom_dirty(struct r600_context *rctx, struct r600_atom *state) in r600_atom_dirty() argument
479 LIST_ADD(&state->head, &rctx->dirty_states); in r600_atom_dirty()
481 LIST_ADDTAIL(&state->head, &rctx->dirty_states); in r600_atom_dirty()
493 void evergreen_init_state_functions(struct r600_context *rctx);
494 void evergreen_init_atom_start_cs(struct r600_context *rctx);
498 void *evergreen_create_db_flush_dsa(struct r600_context *rctx);
499 void *evergreen_create_resolve_blend(struct r600_context *rctx);
500 void *evergreen_create_decompress_blend(struct r600_context *rctx);
[all …]
Devergreen_compute.c87 struct r600_context * rctx, in evergreen_cs_set_vertex_buffer() argument
92 struct r600_vertexbuf_state *state = &rctx->cs_vertex_buffer_state; in evergreen_cs_set_vertex_buffer()
99 r600_inval_vertex_cache(rctx); in evergreen_cs_set_vertex_buffer()
102 r600_atom_dirty(rctx, &state->atom); in evergreen_cs_set_vertex_buffer()
253 struct r600_context *rctx, in evergreen_emit_direct_dispatch() argument
257 struct radeon_winsys_cs *cs = rctx->cs; in evergreen_emit_direct_dispatch()
259 unsigned num_pipes = rctx->screen->info.r600_max_pipes; in evergreen_emit_direct_dispatch()
425 struct r600_context *rctx, in evergreen_emit_cs_shader() argument
431 struct radeon_winsys_cs *cs = rctx->cs; in evergreen_emit_cs_shader()
434 va = r600_resource_va(&rctx->screen->screen, &shader->shader_code_bo->b.b); in evergreen_emit_cs_shader()
[all …]
Devergreen_compute.h38 void evergreen_init_atom_start_compute_cs(struct r600_context *rctx);
39 void evergreen_init_compute_state_functions(struct r600_context *rctx);
40 void evergreen_emit_cs_shader(struct r600_context *rctx, struct r600_atom * atom);
/external/boringssl/src/crypto/evp/
Dp_rsa.c95 RSA_PKEY_CTX *rctx; in pkey_rsa_init() local
96 rctx = OPENSSL_malloc(sizeof(RSA_PKEY_CTX)); in pkey_rsa_init()
97 if (!rctx) { in pkey_rsa_init()
100 memset(rctx, 0, sizeof(RSA_PKEY_CTX)); in pkey_rsa_init()
102 rctx->nbits = 2048; in pkey_rsa_init()
103 rctx->pad_mode = RSA_PKCS1_PADDING; in pkey_rsa_init()
104 rctx->saltlen = -2; in pkey_rsa_init()
106 ctx->data = rctx; in pkey_rsa_init()
142 RSA_PKEY_CTX *rctx = ctx->data; in pkey_rsa_cleanup() local
144 if (rctx == NULL) { in pkey_rsa_cleanup()
[all …]
Devp_ctx.c158 EVP_PKEY_CTX *rctx; in EVP_PKEY_CTX_dup() local
164 rctx = OPENSSL_malloc(sizeof(EVP_PKEY_CTX)); in EVP_PKEY_CTX_dup()
165 if (!rctx) { in EVP_PKEY_CTX_dup()
169 memset(rctx, 0, sizeof(EVP_PKEY_CTX)); in EVP_PKEY_CTX_dup()
171 rctx->pmeth = pctx->pmeth; in EVP_PKEY_CTX_dup()
172 rctx->engine = pctx->engine; in EVP_PKEY_CTX_dup()
173 rctx->operation = pctx->operation; in EVP_PKEY_CTX_dup()
176 rctx->pkey = EVP_PKEY_up_ref(pctx->pkey); in EVP_PKEY_CTX_dup()
177 if (rctx->pkey == NULL) { in EVP_PKEY_CTX_dup()
183 rctx->peerkey = EVP_PKEY_up_ref(pctx->peerkey); in EVP_PKEY_CTX_dup()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_draw.c42 struct r600_context *rctx = (struct r600_context *)ctx; in si_pipe_shader_vs() local
51 si_pm4_delete_state(rctx, vs, shader->pm4); in si_pipe_shader_vs()
95 si_pm4_bind_state(rctx, vs, shader->pm4); in si_pipe_shader_vs()
100 struct r600_context *rctx = (struct r600_context *)ctx; in si_pipe_shader_ps() local
112 si_pm4_delete_state(rctx, ps, shader->pm4); in si_pipe_shader_ps()
123 rctx->queued.named.rasterizer->flatshade)) in si_pipe_shader_ps()
211 shader->sprite_coord_enable = rctx->sprite_coord_enable; in si_pipe_shader_ps()
212 si_pm4_bind_state(rctx, ps, shader->pm4); in si_pipe_shader_ps()
244 static bool si_update_draw_info_state(struct r600_context *rctx, in si_update_draw_info_state() argument
277 rctx->pa_sc_line_stipple); in si_update_draw_info_state()
[all …]
Dr600_query.c28 struct r600_context *rctx = (struct r600_context *)ctx; in r600_create_query() local
30 return (struct pipe_query*)r600_context_query_create(rctx, query_type); in r600_create_query()
35 struct r600_context *rctx = (struct r600_context *)ctx; in r600_destroy_query() local
37 r600_context_query_destroy(rctx, (struct r600_query *)query); in r600_destroy_query()
42 struct r600_context *rctx = (struct r600_context *)ctx; in r600_begin_query() local
47 r600_query_begin(rctx, (struct r600_query *)query); in r600_begin_query()
48 LIST_ADDTAIL(&rquery->list, &rctx->active_query_list); in r600_begin_query()
53 struct r600_context *rctx = (struct r600_context *)ctx; in r600_end_query() local
56 r600_query_end(rctx, rquery); in r600_end_query()
64 struct r600_context *rctx = (struct r600_context *)ctx; in r600_get_query_result() local
[all …]
Dr600_blit.c47 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()
[all …]
Dradeonsi_pipe.c56 static struct r600_fence *r600_create_fence(struct r600_context *rctx) in r600_create_fence() argument
58 struct r600_screen *rscreen = rctx->screen; in r600_create_fence()
72 rscreen->fences.data = rctx->ws->buffer_map(rscreen->fences.bo->cs_buf, in r600_create_fence()
73 rctx->cs, in r600_create_fence()
120 si_context_emit_fence(rctx, rscreen->fences.bo, fence->index, 1); in r600_create_fence()
123 fence->sleep_bo = si_resource_create_custom(&rctx->screen->screen, PIPE_USAGE_STAGING, 1); in r600_create_fence()
126 r600_context_bo_reloc(rctx, fence->sleep_bo, RADEON_USAGE_READWRITE); in r600_create_fence()
137 struct r600_context *rctx = (struct r600_context *)ctx; in radeonsi_flush() local
143 *rfence = r600_create_fence(rctx); in radeonsi_flush()
146 if (rctx->current_render_cond) { in radeonsi_flush()
[all …]
Dsi_state.c40 static void si_update_fb_blend_state(struct r600_context *rctx) in si_update_fb_blend_state() argument
43 struct si_state_blend *blend = rctx->queued.named.blend; in si_update_fb_blend_state()
53 mask = (1ULL << ((unsigned)rctx->framebuffer.nr_cbufs * 4)) - 1; in si_update_fb_blend_state()
57 si_pm4_set_state(rctx, fb_blend, pm4); in si_update_fb_blend_state()
197 struct r600_context *rctx = (struct r600_context *)ctx; in si_bind_blend_state() local
198 si_pm4_bind_state(rctx, blend, (struct si_state_blend *)state); in si_bind_blend_state()
199 si_update_fb_blend_state(rctx); in si_bind_blend_state()
204 struct r600_context *rctx = (struct r600_context *)ctx; in si_delete_blend_state() local
205 si_pm4_delete_state(rctx, blend, (struct si_state_blend *)state); in si_delete_blend_state()
211 struct r600_context *rctx = (struct r600_context *)ctx; in si_set_blend_color() local
[all …]
Dradeonsi_pm4.c157 void si_pm4_free_state(struct r600_context *rctx, in si_pm4_free_state() argument
164 if (idx != ~0 && rctx->emitted.array[idx] == state) { in si_pm4_free_state()
165 rctx->emitted.array[idx] = NULL; in si_pm4_free_state()
174 uint32_t si_pm4_sync_flags(struct r600_context *rctx) in si_pm4_sync_flags() argument
179 struct si_pm4_state *state = rctx->queued.array[i]; in si_pm4_sync_flags()
181 if (!state || rctx->emitted.array[i] == state) in si_pm4_sync_flags()
189 unsigned si_pm4_dirty_dw(struct r600_context *rctx) in si_pm4_dirty_dw() argument
194 struct si_pm4_state *state = rctx->queued.array[i]; in si_pm4_dirty_dw()
196 if (!state || rctx->emitted.array[i] == state) in si_pm4_dirty_dw()
205 void si_pm4_emit(struct r600_context *rctx, struct si_pm4_state *state) in si_pm4_emit() argument
[all …]
Dsi_state.h104 #define si_pm4_bind_state(rctx, member, value) \ argument
106 (rctx)->queued.named.member = (value); \
109 #define si_pm4_delete_state(rctx, member, value) \ argument
111 if ((rctx)->queued.named.member == (value)) { \
112 (rctx)->queued.named.member = NULL; \
114 si_pm4_free_state(rctx, (struct si_pm4_state *)(value), \
118 #define si_pm4_set_state(rctx, member, value) \ argument
120 if ((rctx)->queued.named.member != (value)) { \
121 si_pm4_free_state(rctx, \
122 (struct si_pm4_state *)(rctx)->queued.named.member, \
[all …]
Dr600_buffer.c55 struct r600_context *rctx = (struct r600_context*)ctx; in r600_get_transfer() local
56 struct pipe_transfer *transfer = util_slab_alloc(&rctx->pool_transfers); in r600_get_transfer()
76 struct r600_context *rctx = (struct r600_context*)pipe; in r600_buffer_transfer_map() local
79 data = rctx->ws->buffer_map(rbuffer->cs_buf, rctx->cs, transfer->usage); in r600_buffer_transfer_map()
101 struct r600_context *rctx = (struct r600_context*)ctx; in r600_transfer_destroy() local
102 util_slab_free(&rctx->pool_transfers, transfer); in r600_transfer_destroy()
181 void r600_upload_index_buffer(struct r600_context *rctx, in r600_upload_index_buffer() argument
184 u_upload_data(rctx->uploader, 0, count * ib->index_size, in r600_upload_index_buffer()
188 void r600_upload_const_buffer(struct r600_context *rctx, struct si_resource **rbuffer, in r600_upload_const_buffer() argument
207 u_upload_data(rctx->uploader, 0, size, tmpPtr, const_offset, in r600_upload_const_buffer()
[all …]
Dradeonsi_pm4.h82 void si_pm4_free_state(struct r600_context *rctx,
86 uint32_t si_pm4_sync_flags(struct r600_context *rctx);
87 unsigned si_pm4_dirty_dw(struct r600_context *rctx);
88 void si_pm4_emit(struct r600_context *rctx, struct si_pm4_state *state);
89 void si_pm4_emit_dirty(struct r600_context *rctx);
90 void si_pm4_reset_emitted(struct r600_context *rctx);
Dsi_state_streamout.c208 struct si_context *rctx = (struct r600_context *)ctx; in si_create_so_target()
224 ptr = rctx->ws->buffer_map(t->filled_size->cs_buf, rctx->cs, PIPE_TRANSFER_WRITE); in si_create_so_target()
226 rctx->ws->buffer_unmap(t->filled_size->cs_buf); in si_create_so_target()
251 struct si_context *rctx = (struct r600_context *)ctx; in si_set_so_targets()
255 if (rctx->num_so_targets) { in si_set_so_targets()
256 si_context_streamout_end(rctx); in si_set_so_targets()
261 pipe_so_target_reference((struct pipe_stream_output_target**)&rctx->so_targets[i], targets[i]); in si_set_so_targets()
263 for (; i < rctx->num_so_targets; i++) { in si_set_so_targets()
264 pipe_so_target_reference((struct pipe_stream_output_target**)&rctx->so_targets[i], NULL); in si_set_so_targets()
267 rctx->num_so_targets = num_targets; in si_set_so_targets()
[all …]
Dradeonsi_shader.c73 struct r600_context *rctx; member
213 struct r600_context *rctx = si_shader_ctx->rctx; in declare_input_vs() local
285 if (si_shader_ctx->rctx->queued.named.rasterizer && in declare_input_fs()
286 si_shader_ctx->rctx->queued.named.rasterizer->flatshade) { in declare_input_fs()
397 struct r600_context *rctx = si_shader_ctx->rctx; in si_llvm_init_export_args() local
398 compressed = (rctx->export_16bpc >> cbuf) & 0x1; in si_llvm_init_export_args()
663 struct r600_context *rctx = (struct r600_context*)ctx; in si_pipe_shader_create() local
694 si_shader_ctx.rctx = rctx; in si_pipe_shader_create()
696 shader->shader.nr_cbufs = rctx->framebuffer.nr_cbufs; in si_pipe_shader_create()
740 ptr = (uint32_t*)rctx->ws->buffer_map(shader->bo->cs_buf, rctx->cs, PIPE_TRANSFER_WRITE); in si_pipe_shader_create()
[all …]
Dradeonsi_pipe.h190 void si_init_blit_functions(struct r600_context *rctx);
193 void si_flush_depth_textures(struct r600_context *rctx);
202 void r600_upload_index_buffer(struct r600_context *rctx,
211 void r600_init_query_functions(struct r600_context *rctx);
/external/selinux/libselinux/src/
Davc.c85 char * rctx; in avc_context_to_sid() local
87 if (selinux_trans_to_raw_context(ctx, &rctx)) in avc_context_to_sid()
90 ret = avc_context_to_sid_raw(rctx, sid); in avc_context_to_sid()
92 freecon(rctx); in avc_context_to_sid()
111 char * rctx; in avc_sid_to_context() local
113 ret = avc_sid_to_context_raw(sid, &rctx); in avc_sid_to_context()
116 ret = selinux_raw_to_trans_context(rctx, ctx); in avc_sid_to_context()
117 freecon(rctx); in avc_sid_to_context()

12