/external/mesa3d/src/gallium/drivers/radeon/ |
r600_viewport.c | 28 #define GET_MAX_SCISSOR(rctx) (rctx->chip_class >= EVERGREEN ? 16384 : 8192) 35 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 39 rctx->scissors.states[start_slot + i] = state[i]; 41 if (!rctx->scissor_enabled) 44 rctx->scissors.dirty_mask |= ((1 << num_scissors) - 1) << start_slot; 45 rctx->set_atom_dirty(rctx, &rctx->scissors.atom, true); 51 static void r600_get_scissor_from_viewport(struct r600_common_context *rctx, 263 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local [all...] |
r600_streamout.c | 32 static void r600_set_streamout_enable(struct r600_common_context *rctx, bool enable); 40 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 49 u_suballocator_alloc(rctx->allocator_zeroed_memory, 4, 4, 77 void r600_streamout_buffers_dirty(struct r600_common_context *rctx) 79 struct r600_atom *begin = &rctx->streamout.begin_atom; 80 unsigned num_bufs = util_bitcount(rctx->streamout.enabled_mask); 81 unsigned num_bufs_appended = util_bitcount(rctx->streamout.enabled_mask & 82 rctx->streamout.append_bitmask); 87 rctx->streamout.num_dw_for_end = 93 if (rctx->chip_class >= SI) 117 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local [all...] |
r600_pipe_common.c | 168 struct r600_common_context *rctx = local 191 rctx->b.set_viewport_states(&rctx->b, 0, 1, &viewport); 196 u_upload_alloc(rctx->uploader, 0, sizeof(float) * 24, 256, &offset, &buf, (void**)&vb); 222 util_draw_vertex_buffer(&rctx->b, NULL, buf, blitter->vb_slot, offset, 227 static void r600_dma_emit_wait_idle(struct r600_common_context *rctx) 229 struct radeon_winsys_cs *cs = rctx->dma.cs; 232 if (rctx->chip_class >= CIK) 234 else if (rctx->chip_class >= EVERGREEN) 350 struct r600_common_context *rctx = (struct r600_common_context *)ctx local 410 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 491 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 505 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 516 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 548 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 1121 struct r600_common_context *rctx = local 1359 struct r600_common_context *rctx = (struct r600_common_context*)rscreen->aux_context; local [all...] |
r600_query.c | 50 static void r600_query_sw_destroy(struct r600_common_context *rctx, 53 struct pipe_screen *screen = rctx->b.screen; 81 static bool r600_query_sw_begin(struct r600_common_context *rctx, 91 query->begin_result = rctx->num_draw_calls; 94 query->begin_result = rctx->num_spill_draw_calls; 97 query->begin_result = rctx->num_compute_calls; 100 query->begin_result = rctx->num_spill_compute_calls; 103 query->begin_result = rctx->num_dma_calls; 106 query->begin_result = rctx->num_cp_dma_calls; 109 query->begin_result = rctx->num_vs_flushes 799 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 811 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 820 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 876 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 1094 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 1108 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local 1519 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local [all...] |
r600_texture.c | 45 bool r600_prepare_for_dma_blit(struct r600_common_context *rctx, 53 if (!rctx->dma.cs) 92 r600_texture_discard_cmask(rctx->screen, rdst); 97 rctx->b.flush_resource(&rctx->b, &rsrc->resource.b.b); 142 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 153 rctx->dma_copy(ctx, dst, 0, 0, 0, 0, src, transfer->level, 160 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 175 rctx->dma_copy(ctx, dst, transfer->level, 306 static void r600_eliminate_fast_color_clear(struct r600_common_context *rctx, 494 struct r600_common_context *rctx = (struct r600_common_context*) local 1433 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 1606 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 1760 struct r600_common_context *rctx = (struct r600_common_context*)pipe; local 2036 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 2055 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 2135 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local [all...] |
r600_cs.h | 69 static inline unsigned radeon_add_to_buffer_list(struct r600_common_context *rctx, 76 return rctx->ws->cs_add_buffer( 100 radeon_add_to_buffer_list_check_mem(struct r600_common_context *rctx, 108 !radeon_cs_memory_below_limit(rctx->screen, ring->cs, 109 rctx->vram + rbo->vram_usage, 110 rctx->gtt + rbo->gart_usage)) 111 ring->flush(rctx, RADEON_FLUSH_ASYNC, NULL); 113 return radeon_add_to_buffer_list(rctx, ring, rbo, usage, priority); 116 static inline void r600_emit_reloc(struct r600_common_context *rctx, 122 bool has_vm = ((struct r600_common_screen*)rctx->b.screen)->info.has_virtual_memory [all...] |
r600_buffer_common.c | 241 r600_invalidate_buffer(struct r600_common_context *rctx, 251 if (rctx->ws->buffer_is_user_ptr(rbuffer->buf)) 255 if (r600_rings_is_buffer_referenced(rctx, rbuffer->buf, RADEON_USAGE_READWRITE) || 256 !rctx->ws->buffer_wait(rbuffer->buf, 0, RADEON_USAGE_READWRITE)) { 257 rctx->invalidate_buffer(&rctx->b, &rbuffer->b.b); 268 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 273 (void)r600_invalidate_buffer(rctx, rbuffer); 285 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 286 struct r600_transfer *transfer = slab_alloc(&rctx->pool_transfers) 318 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 462 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local [all...] |
r600_pipe_common.h | 730 bool r600_common_context_init(struct r600_common_context *rctx, 733 void r600_common_context_cleanup(struct r600_common_context *rctx); 748 bool r600_check_device_reset(struct r600_common_context *rctx); 762 void r600_query_init(struct r600_common_context *rctx); 768 void r600_streamout_buffers_dirty(struct r600_common_context *rctx); 773 void r600_emit_streamout_end(struct r600_common_context *rctx); 774 void r600_update_prims_generated_query_state(struct r600_common_context *rctx, 776 void r600_streamout_init(struct r600_common_context *rctx); 782 bool r600_prepare_for_dma_blit(struct r600_common_context *rctx, 804 void vi_dcc_disable_if_incompatible_format(struct r600_common_context *rctx, 878 struct r600_common_context *rctx = (struct r600_common_context *)ctx; local [all...] |
r600_query.h | 167 bool r600_query_hw_init(struct r600_common_context *rctx, 169 void r600_query_hw_destroy(struct r600_common_context *rctx, 171 bool r600_query_hw_begin(struct r600_common_context *rctx, 173 bool r600_query_hw_end(struct r600_common_context *rctx, 175 bool r600_query_hw_get_result(struct r600_common_context *rctx, 282 void r600_query_hw_reset_buffers(struct r600_common_context *rctx,
|
cayman_msaa.c | 128 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 131 cayman_get_sample_position(ctx, 1, 0, rctx->sample_locations_1x[0]); 134 cayman_get_sample_position(ctx, 2, i, rctx->sample_locations_2x[i]); 136 cayman_get_sample_position(ctx, 4, i, rctx->sample_locations_4x[i]); 138 cayman_get_sample_position(ctx, 8, i, rctx->sample_locations_8x[i]); 140 cayman_get_sample_position(ctx, 16, i, rctx->sample_locations_16x[i]);
|
r600_test_dma.c | 186 struct r600_common_context *rctx = (struct r600_common_context*)ctx; local 304 rctx->clear_buffer(ctx, dst, 0, rdst->surface.surf_size, 0, true); 317 unsigned old_num_draw_calls = rctx->num_draw_calls; 318 unsigned old_num_dma_calls = rctx->num_dma_calls; 373 rctx->dma_copy(ctx, dst, 0, dstx, dsty, dstz, src, 0, &box); 376 gfx_blits += rctx->num_draw_calls > old_num_draw_calls; 377 dma_blits += rctx->num_dma_calls > old_num_dma_calls;
|
/external/mesa3d/src/gallium/drivers/r600/ |
evergreen_compute.h | 41 void evergreen_init_atom_start_compute_cs(struct r600_context *rctx); 42 void evergreen_init_compute_state_functions(struct r600_context *rctx); 43 void evergreen_emit_cs_shader(struct r600_context *rctx, struct r600_atom * atom);
|
r600_pipe.c | 67 struct r600_context *rctx = (struct r600_context *)context; local 70 r600_isa_destroy(rctx->isa); 72 r600_sb_context_destroy(rctx->sb_context); 74 r600_resource_reference(&rctx->dummy_cmask, NULL); 75 r600_resource_reference(&rctx->dummy_fmask, NULL); 78 rctx->b.b.set_constant_buffer(&rctx->b.b, sh, R600_BUFFER_INFO_CONST_BUFFER, NULL); 79 free(rctx->driver_consts[sh].constants); 82 if (rctx->fixed_func_tcs_shader) 83 rctx->b.b.delete_tcs_state(&rctx->b.b, rctx->fixed_func_tcs_shader) 120 struct r600_context *rctx = CALLOC_STRUCT(r600_context); local [all...] |
r600_state_common.c | 52 void r600_add_atom(struct r600_context *rctx, 57 assert(rctx->atoms[id] == NULL); 58 rctx->atoms[id] = atom; 62 void r600_init_atom(struct r600_context *rctx, 70 r600_add_atom(rctx, atom, id); 73 void r600_emit_cso_state(struct r600_context *rctx, struct r600_atom *atom) 75 r600_emit_command_buffer(rctx->b.gfx.cs, ((struct r600_cso_state*)atom)->cb); 78 void r600_emit_alphatest_state(struct r600_context *rctx, struct r600_atom *atom) 80 struct radeon_winsys_cs *cs = rctx->b.gfx.cs; 84 if (rctx->b.chip_class >= EVERGREEN && a->cb0_export_16bpc) 96 struct r600_context *rctx = (struct r600_context *)ctx; local 194 struct r600_context *rctx = (struct r600_context *)ctx; local 208 struct r600_context *rctx = (struct r600_context *)ctx; local 244 struct r600_context *rctx = (struct r600_context *)ctx; local 254 struct r600_context *rctx = (struct r600_context *)ctx; local 279 struct r600_context *rctx = (struct r600_context *)ctx; local 300 struct r600_context *rctx = (struct r600_context *)ctx; local 342 struct r600_context *rctx = (struct r600_context *)ctx; local 415 struct r600_context *rctx = (struct r600_context *)pipe; local 482 struct r600_context *rctx = (struct r600_context *)ctx; local 496 struct r600_context *rctx = (struct r600_context *)ctx; local 509 struct r600_context *rctx = (struct r600_context *)ctx; local 524 struct r600_context *rctx = (struct r600_context *)ctx; local 548 struct r600_context *rctx = (struct r600_context *)ctx; local 605 struct r600_context *rctx = (struct r600_context *) pipe; local 714 struct r600_context *rctx = (struct r600_context *)ctx; local 909 struct r600_context *rctx = (struct r600_context *)ctx; local 931 struct r600_context *rctx = (struct r600_context *)ctx; local 943 struct r600_context *rctx = (struct r600_context *)ctx; local 955 struct r600_context *rctx = (struct r600_context *)ctx; local 962 struct r600_context *rctx = (struct r600_context *)ctx; local 990 struct r600_context *rctx = (struct r600_context *)ctx; local 1002 struct r600_context *rctx = (struct r600_context *)ctx; local 1015 struct r600_context *rctx = (struct r600_context *)ctx; local 1027 struct r600_context *rctx = (struct r600_context *)ctx; local 1039 struct r600_context *rctx = (struct r600_context *)ctx; local 1061 struct r600_context *rctx = (struct r600_context *)ctx; local 1117 struct r600_context *rctx = (struct r600_context*)pipe; local 1303 struct r600_context *rctx = (struct r600_context *)ctx; local 1666 struct r600_context *rctx = (struct r600_context *)ctx; local 2783 struct r600_context *rctx = (struct r600_context*)ctx; local 2863 struct r600_context *rctx = (struct r600_context*)ctx; local 2883 struct r600_context *rctx = (struct r600_context*)ctx; local [all...] |
evergreen_state.c | 459 struct r600_context *rctx = (struct r600_context *)ctx; local 531 if (rctx->b.chip_class == CAYMAN) { 600 texture_buffer_sampler_view(struct r600_context *rctx, 651 LIST_ADDTAIL(&view->list, &rctx->texture_buffers); 662 struct r600_context *rctx = (struct r600_context*)ctx; local 690 return texture_buffer_sampler_view(rctx, view, width0, height0); 882 static void evergreen_emit_config_state(struct r600_context *rctx, struct r600_atom *atom) 884 struct radeon_winsys_cs *cs = rctx->b.gfx.cs; 889 radeon_emit(cs, S_008C04_NUM_CLAUSE_TEMP_GPRS(rctx->r6xx_num_clause_temp_gprs)); 909 static void evergreen_emit_clip_state(struct r600_context *rctx, struct r600_atom *atom 1262 struct r600_context *rctx = (struct r600_context *)ctx; local 1407 struct r600_context *rctx = (struct r600_context *)ctx; local 2911 struct r600_context *rctx = (struct r600_context *)ctx; local 3110 struct r600_context *rctx = (struct r600_context *)ctx; local 3466 struct r600_context *rctx = (struct r600_context *)ctx; local 3556 struct r600_context *rctx = (struct r600_context *)ctx; local [all...] |
r600_blit.c | 55 struct r600_context *rctx = (struct r600_context *)ctx; local 57 util_blitter_save_vertex_buffer_slot(rctx->blitter, rctx->vertex_buffer_state.vb); 58 util_blitter_save_vertex_elements(rctx->blitter, rctx->vertex_fetch_shader.cso); 59 util_blitter_save_vertex_shader(rctx->blitter, rctx->vs_shader); 60 util_blitter_save_geometry_shader(rctx->blitter, rctx->gs_shader); 61 util_blitter_save_tessctrl_shader(rctx->blitter, rctx->tcs_shader) 96 struct r600_context *rctx = (struct r600_context *)ctx; local 113 struct r600_context *rctx = (struct r600_context *)ctx; local 299 struct r600_context *rctx = (struct r600_context *)ctx; local 372 struct r600_context *rctx = (struct r600_context *)ctx; local 405 struct r600_context *rctx = (struct r600_context *)ctx; local 479 struct r600_context *rctx = (struct r600_context *)ctx; local 497 struct r600_context *rctx = (struct r600_context *)ctx; local 509 struct r600_context *rctx = (struct r600_context*)ctx; local 537 struct r600_context *rctx = (struct r600_context*)ctx; local 583 struct r600_context *rctx = (struct r600_context*)ctx; local 615 struct r600_context *rctx = (struct r600_context *)ctx; local 758 struct r600_context *rctx = (struct r600_context*)ctx; local 852 struct r600_context *rctx = (struct r600_context*)ctx; local [all...] |
evergreen_compute.c | 104 struct r600_context *rctx = NULL; local 110 rctx = pipe->ctx; 112 COMPUTE_DBG(rctx->screen, "bind rat: %i \n", id); 137 evergreen_init_color_surface_rat(rctx, surf); 140 static void evergreen_cs_set_vertex_buffer(struct r600_context *rctx, 145 struct r600_vertexbuf_state *state = &rctx->cs_vertex_buffer_state; 154 rctx->b.flags |= R600_CONTEXT_INV_VERTEX_CACHE; 157 r600_mark_atom_dirty(rctx, &state->atom); 160 static void evergreen_cs_set_constant_buffer(struct r600_context *rctx, 172 rctx->b.b.set_constant_buffer(&rctx->b.b, PIPE_SHADER_COMPUTE, cb_index, &cb) 242 struct r600_context *rctx = (struct r600_context *)ctx; local 276 struct r600_context *rctx = (struct r600_context *)ctx; local 294 struct r600_context *rctx = (struct r600_context *)ctx; local 315 struct r600_context *rctx = (struct r600_context *)ctx; local 591 struct r600_context *rctx = (struct r600_context *)ctx; local 613 struct r600_context *rctx = (struct r600_context *)ctx; local 648 struct r600_context *rctx = (struct r600_context *)ctx; local 911 struct r600_context *rctx = (struct r600_context*)ctx; local [all...] |
evergreen_hw_context.c | 31 void evergreen_dma_copy_buffer(struct r600_context *rctx, 38 struct radeon_winsys_cs *cs = rctx->b.dma.cs; 63 r600_need_dma_space(&rctx->b, ncopy * 5, rdst, rsrc); 67 radeon_add_to_buffer_list(&rctx->b, &rctx->b.dma, rsrc, RADEON_USAGE_READ, 69 radeon_add_to_buffer_list(&rctx->b, &rctx->b.dma, rdst, RADEON_USAGE_WRITE, 85 void evergreen_cp_dma_clear_buffer(struct r600_context *rctx, 90 struct radeon_winsys_cs *cs = rctx->b.gfx.cs; 93 assert(rctx->screen->b.has_cp_dma) [all...] |
r600_hw_context.c | 89 void r600_flush_emit(struct r600_context *rctx) 91 struct radeon_winsys_cs *cs = rctx->b.gfx.cs; 95 if (!rctx->b.flags) { 100 if (rctx->b.flags & R600_CONTEXT_STREAMOUT_FLUSH) 101 rctx->b.flags |= r600_get_flush_flags(R600_COHERENCY_SHADER); 103 if (rctx->b.flags & R600_CONTEXT_WAIT_3D_IDLE) { 106 if (rctx->b.flags & R600_CONTEXT_WAIT_CP_DMA_IDLE) { 112 if (rctx->b.family >= CHIP_CAYMAN) { 114 rctx->b.flags |= R600_CONTEXT_PS_PARTIAL_FLUSH; 121 if (rctx->b.flags & R600_CONTEXT_PS_PARTIAL_FLUSH) [all...] |
r600_state.c | 246 static void r600_emit_polygon_offset(struct r600_context *rctx, struct r600_atom *a) 248 struct radeon_winsys_cs *cs = rctx->b.gfx.cs; 317 struct r600_context *rctx = (struct r600_context *)ctx; local 329 if (rctx->b.family > CHIP_R600) 386 if (rctx->b.family > CHIP_R600) { 458 struct r600_context *rctx = (struct r600_context *)ctx; local 483 if (rctx->b.chip_class == R700) { 507 S_028A4C_PS_ITER_SAMPLE(state->multisample && rctx->ps_iter_samples > 1); 508 if (rctx->b.family == CHIP_RV770) { 510 sc_mode_cntl |= S_028A4C_TILE_COVER_DISABLE(state->multisample && rctx->ps_iter_samples > 1) 1068 struct r600_context *rctx = (struct r600_context *)ctx; local 1479 struct r600_context *rctx = (struct r600_context *)ctx; local 2410 struct r600_context *rctx = (struct r600_context *)ctx; local 2616 struct r600_context *rctx = (struct r600_context *)ctx; local 2918 struct r600_context *rctx = (struct r600_context *)ctx; local [all...] |
r600_pipe.h | 535 static inline void r600_set_atom_dirty(struct r600_context *rctx, 545 rctx->dirty_atoms |= mask; 547 rctx->dirty_atoms &= ~mask; 550 static inline void r600_mark_atom_dirty(struct r600_context *rctx, 553 r600_set_atom_dirty(rctx, atom, true); 556 static inline void r600_emit_atom(struct r600_context *rctx, struct r600_atom *atom) 558 atom->emit(&rctx->b, atom); 559 r600_set_atom_dirty(rctx, atom, false); 562 static inline void r600_set_cso_state(struct r600_context *rctx, 566 r600_set_atom_dirty(rctx, &state->atom, cso != NULL) [all...] |
/external/boringssl/src/crypto/evp/ |
p_rsa.c | 96 RSA_PKEY_CTX *rctx; local 97 rctx = OPENSSL_malloc(sizeof(RSA_PKEY_CTX)); 98 if (!rctx) { 101 OPENSSL_memset(rctx, 0, sizeof(RSA_PKEY_CTX)); 103 rctx->nbits = 2048; 104 rctx->pad_mode = RSA_PKCS1_PADDING; 105 rctx->saltlen = -2; 107 ctx->data = rctx; 143 RSA_PKEY_CTX *rctx = ctx->data; local 145 if (rctx == NULL) 168 RSA_PKEY_CTX *rctx = ctx->data; local 207 RSA_PKEY_CTX *rctx = ctx->data; local 240 RSA_PKEY_CTX *rctx = ctx->data; local 304 RSA_PKEY_CTX *rctx = ctx->data; local 336 RSA_PKEY_CTX *rctx = ctx->data; local 392 RSA_PKEY_CTX *rctx = ctx->data; local 519 RSA_PKEY_CTX *rctx = ctx->data; local [all...] |
/external/mesa3d/src/gallium/drivers/r600/sb/ |
sb_public.h | 40 int r600_sb_bytecode_process(struct r600_context *rctx,
|
sb_core.cpp | 48 sb_context *r600_sb_context_create(struct r600_context *rctx) { 52 if (sctx->init(rctx->isa, translate_chip(rctx->b.family), 53 translate_chip_class(rctx->b.chip_class))) { 58 unsigned df = rctx->screen->b.debug_flags; 90 int r600_sb_bytecode_process(struct r600_context *rctx, 98 sb_context *ctx = (sb_context *)rctx->sb_context; 100 rctx->sb_context = ctx = r600_sb_context_create(rctx);
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
si_state_draw.c | 721 static void si_emit_surface_sync(struct r600_common_context *rctx, 724 struct radeon_winsys_cs *cs = rctx->gfx.cs; 736 struct r600_common_context *rctx = &sctx->b; local 737 struct radeon_winsys_cs *cs = rctx->gfx.cs; 740 if (rctx->flags & SI_CONTEXT_FLUSH_AND_INV_FRAMEBUFFER) 751 if (rctx->flags & SI_CONTEXT_INV_ICACHE) 753 if (rctx->flags & SI_CONTEXT_INV_SMEM_L1) 756 if (rctx->flags & SI_CONTEXT_FLUSH_AND_INV_CB) { 768 if (rctx->chip_class == VI) 769 r600_gfx_write_event_eop(rctx, V_028A90_FLUSH_AND_INV_CB_DATA_TS [all...] |