Home
last modified time | relevance | path

Searched refs:sctx (Results 1 - 25 of 127) sorted by relevance

123456

/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_state_streamout.c29 static void si_set_streamout_enable(struct si_context *sctx, bool enable);
68 void si_streamout_buffers_dirty(struct si_context *sctx) in si_streamout_buffers_dirty() argument
70 if (!sctx->streamout.enabled_mask) in si_streamout_buffers_dirty()
73 si_mark_atom_dirty(sctx, &sctx->atoms.s.streamout_begin); in si_streamout_buffers_dirty()
74 si_set_streamout_enable(sctx, true); in si_streamout_buffers_dirty()
81 struct si_context *sctx = (struct si_context *)ctx; in si_set_streamout_targets() local
82 unsigned old_num_targets = sctx->streamout.num_targets; in si_set_streamout_targets()
87 if (sctx->streamout.num_targets && sctx in si_set_streamout_targets()
215 si_flush_vgt_streamout(struct si_context *sctx) si_flush_vgt_streamout() argument
251 si_emit_streamout_begin(struct si_context *sctx) si_emit_streamout_begin() argument
328 si_emit_streamout_end(struct si_context *sctx) si_emit_streamout_end() argument
381 si_emit_streamout_enable(struct si_context *sctx) si_emit_streamout_enable() argument
396 si_set_streamout_enable(struct si_context *sctx, bool enable) si_set_streamout_enable() argument
413 si_update_prims_generated_query_state(struct si_context *sctx, unsigned type, int diff) si_update_prims_generated_query_state() argument
433 si_init_streamout_functions(struct si_context *sctx) si_init_streamout_functions() argument
[all...]
H A Dsi_pipe.c192 struct si_context *sctx = (struct si_context *)context; in si_destroy_context() local
202 si_release_all_descriptors(sctx); in si_destroy_context()
204 if (sctx->gfx_level >= GFX10 && sctx->has_graphics) in si_destroy_context()
205 gfx10_destroy_query(sctx); in si_destroy_context()
207 if (sctx->thread_trace) in si_destroy_context()
208 si_destroy_thread_trace(sctx); in si_destroy_context()
210 pipe_resource_reference(&sctx->esgs_ring, NULL); in si_destroy_context()
211 pipe_resource_reference(&sctx->gsvs_ring, NULL); in si_destroy_context()
212 pipe_resource_reference(&sctx in si_destroy_context()
364 struct si_context *sctx = (struct si_context *)ctx; si_get_reset_status() local
383 struct si_context *sctx = (struct si_context *)ctx; si_set_device_reset_callback() local
401 struct si_context *sctx = (struct si_context *)ctx; si_emit_string_marker() local
414 struct si_context *sctx = (struct si_context *)ctx; si_set_debug_callback() local
428 struct si_context *sctx = (struct si_context *)ctx; si_set_log_context() local
450 struct si_context *sctx = (struct si_context *)ctx; si_set_frontend_noop() local
467 struct si_context *sctx = CALLOC_STRUCT(si_context); si_create_context() local
999 struct si_context *sctx = (struct si_context *)ctx; si_test_vmfault() local
1022 si_test_gds_memory_management(struct si_context *sctx, unsigned alloc_size, unsigned alignment, enum radeon_bo_domain domain) si_test_gds_memory_management() argument
[all...]
H A Dsi_state_draw.cpp55 static void si_emit_spi_map(struct si_context *sctx) in si_emit_spi_map() argument
57 struct si_shader *ps = sctx->shader.ps.current; in si_emit_spi_map()
66 struct si_shader *vs = si_get_vs(sctx)->current; in si_emit_spi_map()
67 struct si_state_rasterizer *rs = sctx->queued.named.rasterizer; in si_emit_spi_map()
104 radeon_begin(&sctx->gfx_cs); in si_emit_spi_map()
105 radeon_opt_set_context_regn(sctx, R_028644_SPI_PS_INPUT_CNTL_0, spi_ps_input_cntl, in si_emit_spi_map()
106 sctx->tracked_regs.spi_ps_input_cntl, NUM_INTERP); in si_emit_spi_map()
107 radeon_end_update_context_roll(sctx); in si_emit_spi_map()
111 static bool si_update_shaders(struct si_context *sctx) in si_update_shaders() argument
113 struct pipe_context *ctx = (struct pipe_context *)sctx; in si_update_shaders()
[all...]
H A Dsi_descriptors.c128 static bool si_upload_descriptors(struct si_context *sctx, struct si_descriptors *desc) in si_upload_descriptors() argument
155 u_upload_alloc(sctx->b.const_uploader, first_slot_offset, upload_size, in si_upload_descriptors()
156 si_optimal_tcc_alignment(sctx, upload_size), &buffer_offset, in si_upload_descriptors()
166 radeon_add_to_buffer_list(sctx, &sctx->gfx_cs, desc->buffer, in si_upload_descriptors()
174 assert((desc->buffer->gpu_address >> 32) == sctx->screen->info.address32_hi); in si_upload_descriptors()
175 assert((desc->gpu_address >> 32) == sctx->screen->info.address32_hi); in si_upload_descriptors()
180 si_add_descriptors_to_bo_list(struct si_context *sctx, struct si_descriptors *desc) in si_add_descriptors_to_bo_list() argument
185 radeon_add_to_buffer_list(sctx, &sctx in si_add_descriptors_to_bo_list()
202 si_sampler_and_image_descriptors(struct si_context *sctx, unsigned shader) si_sampler_and_image_descriptors() argument
217 si_sampler_view_add_buffer(struct si_context *sctx, struct pipe_resource *resource, unsigned usage, bool is_stencil_sampler, bool check_mem) si_sampler_view_add_buffer() argument
236 si_sampler_views_begin_new_cs(struct si_context *sctx, struct si_samplers *samplers) si_sampler_views_begin_new_cs() argument
250 si_sampler_views_check_encrypted(struct si_context *sctx, struct si_samplers *samplers, unsigned samplers_declared) si_sampler_views_check_encrypted() argument
445 si_set_sampler_view_desc(struct si_context *sctx, struct si_sampler_view *sview, struct si_sampler_state *sstate, uint32_t * restrict desc) si_set_sampler_view_desc() argument
519 si_set_sampler_views(struct si_context *sctx, unsigned shader, unsigned start_slot, unsigned count, unsigned unbind_num_trailing_slots, bool take_ownership, struct pipe_sampler_view **views, bool disallow_early_out) si_set_sampler_views() argument
620 si_update_shader_needs_decompress_mask(struct si_context *sctx, unsigned shader) si_update_shader_needs_decompress_mask() argument
642 struct si_context *sctx = (struct si_context *)ctx; si_pipe_set_sampler_views() local
685 si_image_views_begin_new_cs(struct si_context *sctx, struct si_images *images) si_image_views_begin_new_cs() argument
700 si_image_views_check_encrypted(struct si_context *sctx, struct si_images *images, unsigned images_declared) si_image_views_check_encrypted() argument
942 si_update_ps_colorbuf0_slot(struct si_context *sctx) si_update_ps_colorbuf0_slot() argument
1022 struct si_context *sctx = (struct si_context *)ctx; si_bind_sampler_states() local
1064 si_init_buffer_resources(struct si_context *sctx, struct si_buffer_resources *buffers, struct si_descriptors *descs, unsigned num_buffers, short shader_userdata_rel_index, unsigned priority, unsigned priority_constbuf) si_init_buffer_resources() argument
1111 si_buffer_resources_begin_new_cs(struct si_context *sctx, struct si_buffer_resources *buffers) si_buffer_resources_begin_new_cs() argument
1127 si_buffer_resources_check_encrypted(struct si_context *sctx, struct si_buffer_resources *buffers) si_buffer_resources_check_encrypted() argument
1165 si_vertex_buffers_begin_new_cs(struct si_context *sctx) si_vertex_buffers_begin_new_cs() argument
1191 si_const_and_shader_buffer_descriptors(struct si_context *sctx, unsigned shader) si_const_and_shader_buffer_descriptors() argument
1197 si_upload_const_buffer(struct si_context *sctx, struct si_resource **buf, const uint8_t *ptr, unsigned size, uint32_t *const_offset) si_upload_const_buffer() argument
1208 si_set_constant_buffer(struct si_context *sctx, struct si_buffer_resources *buffers, unsigned descriptors_idx, uint slot, bool take_ownership, const struct pipe_constant_buffer *input) si_set_constant_buffer() argument
1278 si_invalidate_inlinable_uniforms(struct si_context *sctx, enum pipe_shader_type shader) si_invalidate_inlinable_uniforms() argument
1302 struct si_context *sctx = (struct si_context *)ctx; si_pipe_set_constant_buffer() local
1331 struct si_context *sctx = (struct si_context *)ctx; si_set_inlinable_constants() local
1361 si_get_pipe_constant_buffer(struct si_context *sctx, uint shader, uint slot, struct pipe_constant_buffer *cbuf) si_get_pipe_constant_buffer() argument
1372 si_set_shader_buffer(struct si_context *sctx, struct si_buffer_resources *buffers, unsigned descriptors_idx, uint slot, const struct pipe_shader_buffer *sbuffer, bool writable, unsigned priority) si_set_shader_buffer() argument
1418 struct si_context *sctx = (struct si_context *)ctx; si_set_shader_buffers() local
1453 si_get_shader_buffers(struct si_context *sctx, enum pipe_shader_type shader, uint start_slot, uint count, struct pipe_shader_buffer *sbuf) si_get_shader_buffers() argument
1467 si_set_internal_const_buffer(struct si_context *sctx, uint slot, const struct pipe_constant_buffer *input) si_set_internal_const_buffer() argument
1473 si_set_internal_shader_buffer(struct si_context *sctx, uint slot, const struct pipe_shader_buffer *sbuffer) si_set_internal_shader_buffer() argument
1480 si_set_ring_buffer(struct si_context *sctx, uint slot, struct pipe_resource *buffer, unsigned stride, unsigned num_records, bool add_tid, bool swizzle, unsigned element_size, unsigned index_stride, uint64_t offset) si_set_ring_buffer() argument
1585 struct si_context *sctx = (struct si_context *)ctx; si_set_polygon_stipple() local
1601 si_resident_handles_update_needs_color_decompress(struct si_context *sctx) si_resident_handles_update_needs_color_decompress() argument
1642 si_update_needs_color_decompress_masks(struct si_context *sctx) si_update_needs_color_decompress_masks() argument
1658 si_reset_buffer_resources(struct si_context *sctx, struct si_buffer_resources *buffers, unsigned descriptors_idx, uint64_t slot_mask, struct pipe_resource *buf, unsigned priority) si_reset_buffer_resources() argument
1690 si_rebind_buffer(struct si_context *sctx, struct pipe_resource *buf) si_rebind_buffer() argument
1893 si_upload_bindless_descriptor(struct si_context *sctx, unsigned desc_slot, unsigned num_dwords) si_upload_bindless_descriptor() argument
1908 si_upload_bindless_descriptors(struct si_context *sctx) si_upload_bindless_descriptors() argument
1945 si_update_bindless_texture_descriptor(struct si_context *sctx, struct si_texture_handle *tex_handle) si_update_bindless_texture_descriptor() argument
1965 si_update_bindless_image_descriptor(struct si_context *sctx, struct si_image_handle *img_handle) si_update_bindless_image_descriptor() argument
1988 si_update_all_resident_texture_descriptors(struct si_context *sctx) si_update_all_resident_texture_descriptors() argument
2002 si_update_all_texture_descriptors(struct si_context *sctx) si_update_all_texture_descriptors() argument
2044 si_mark_shader_pointers_dirty(struct si_context *sctx, unsigned shader) si_mark_shader_pointers_dirty() argument
2062 si_shader_pointers_mark_dirty(struct si_context *sctx) si_shader_pointers_mark_dirty() argument
2084 si_set_user_data_base(struct si_context *sctx, unsigned shader, uint32_t new_base) si_set_user_data_base() argument
2108 si_shader_change_notify(struct si_context *sctx) si_shader_change_notify() argument
2174 si_emit_global_shader_pointers(struct si_context *sctx, struct si_descriptors *descs) si_emit_global_shader_pointers() argument
2216 si_emit_graphics_shader_pointers(struct si_context *sctx) si_emit_graphics_shader_pointers() argument
2252 si_emit_compute_shader_pointers(struct si_context *sctx) si_emit_compute_shader_pointers() argument
2312 si_init_bindless_descriptors(struct si_context *sctx, struct si_descriptors *desc, short shader_userdata_rel_index, unsigned num_elements) si_init_bindless_descriptors() argument
2333 si_release_bindless_descriptors(struct si_context *sctx) si_release_bindless_descriptors() argument
2339 si_get_first_free_bindless_slot(struct si_context *sctx) si_get_first_free_bindless_slot() argument
2360 si_create_bindless_descriptor(struct si_context *sctx, uint32_t *desc_list, unsigned size) si_create_bindless_descriptor() argument
2391 si_update_bindless_buffer_descriptor(struct si_context *sctx, unsigned desc_slot, struct pipe_resource *resource, uint64_t offset, bool *desc_dirty) si_update_bindless_buffer_descriptor() argument
2420 struct si_context *sctx = (struct si_context *)ctx; si_create_texture_handle() local
2465 struct si_context *sctx = (struct si_context *)ctx; si_delete_texture_handle() local
2486 struct si_context *sctx = (struct si_context *)ctx; si_make_texture_handle_resident() local
2553 struct si_context *sctx = (struct si_context *)ctx; si_create_image_handle() local
2592 struct si_context *sctx = (struct si_context *)ctx; si_delete_image_handle() local
2610 struct si_context *sctx = (struct si_context *)ctx; si_make_image_handle_resident() local
2671 si_resident_buffers_add_all_to_bo_list(struct si_context *sctx) si_resident_buffers_add_all_to_bo_list() argument
2700 si_init_all_descriptors(struct si_context *sctx) si_init_all_descriptors() argument
2820 si_upload_shader_descriptors(struct si_context *sctx, unsigned mask) si_upload_shader_descriptors() argument
2841 si_upload_graphics_shader_descriptors(struct si_context *sctx) si_upload_graphics_shader_descriptors() argument
2847 si_upload_compute_shader_descriptors(struct si_context *sctx) si_upload_compute_shader_descriptors() argument
2857 si_release_all_descriptors(struct si_context *sctx) si_release_all_descriptors() argument
2880 si_gfx_resources_check_encrypted(struct si_context *sctx) si_gfx_resources_check_encrypted() argument
2946 si_gfx_resources_add_all_to_bo_list(struct si_context *sctx) si_gfx_resources_add_all_to_bo_list() argument
2963 si_compute_resources_check_encrypted(struct si_context *sctx) si_compute_resources_check_encrypted() argument
2978 si_compute_resources_add_all_to_bo_list(struct si_context *sctx) si_compute_resources_add_all_to_bo_list() argument
2994 si_add_all_descriptors_to_bo_list(struct si_context *sctx) si_add_all_descriptors_to_bo_list() argument
3005 si_set_active_descriptors(struct si_context *sctx, unsigned desc_idx, uint64_t new_active_mask) si_set_active_descriptors() argument
3027 si_set_active_descriptors_for_shader(struct si_context *sctx, struct si_shader_selector *sel) si_set_active_descriptors_for_shader() argument
[all...]
H A Dsi_cp_dma.c43 static inline unsigned cp_dma_max_byte_count(struct si_context *sctx) in cp_dma_max_byte_count() argument
46 sctx->gfx_level >= GFX11 ? 32767 : in cp_dma_max_byte_count()
47 sctx->gfx_level >= GFX9 ? S_415_BYTE_COUNT_GFX9(~0u) : S_415_BYTE_COUNT_GFX6(~0u); in cp_dma_max_byte_count()
57 static void si_emit_cp_dma(struct si_context *sctx, struct radeon_cmdbuf *cs, uint64_t dst_va, in si_emit_cp_dma() argument
63 assert(size <= cp_dma_max_byte_count(sctx)); in si_emit_cp_dma()
64 assert(sctx->gfx_level != GFX6 || cache_policy == L2_BYPASS); in si_emit_cp_dma()
66 if (sctx->gfx_level >= GFX9) in si_emit_cp_dma()
79 if (sctx->gfx_level >= GFX9 && !(flags & CP_DMA_CLEAR) && src_va == dst_va) { in si_emit_cp_dma()
85 } else if (sctx->gfx_level >= GFX7 && cache_policy != L2_BYPASS) { in si_emit_cp_dma()
96 } else if (sctx in si_emit_cp_dma()
134 si_cp_dma_wait_for_idle(struct si_context *sctx, struct radeon_cmdbuf *cs) si_cp_dma_wait_for_idle() argument
145 si_cp_dma_prepare(struct si_context *sctx, struct pipe_resource *dst, struct pipe_resource *src, unsigned byte_count, uint64_t remaining_size, unsigned user_flags, enum si_coherency coher, bool *is_first, unsigned *packet_flags) si_cp_dma_prepare() argument
189 si_cp_dma_clear_buffer(struct si_context *sctx, struct radeon_cmdbuf *cs, struct pipe_resource *dst, uint64_t offset, uint64_t size, unsigned value, unsigned user_flags, enum si_coherency coher, enum si_cache_policy cache_policy) si_cp_dma_clear_buffer() argument
247 si_cp_dma_realign_engine(struct si_context *sctx, unsigned size, unsigned user_flags, enum si_coherency coher, enum si_cache_policy cache_policy, bool *is_first) si_cp_dma_realign_engine() argument
285 si_cp_dma_copy_buffer(struct si_context *sctx, struct pipe_resource *dst, struct pipe_resource *src, uint64_t dst_offset, uint64_t src_offset, unsigned size, unsigned user_flags, enum si_coherency coher, enum si_cache_policy cache_policy) si_cp_dma_copy_buffer() argument
400 si_test_gds(struct si_context *sctx) si_test_gds() argument
447 si_cp_write_data(struct si_context *sctx, struct si_resource *buf, unsigned offset, unsigned size, unsigned dst_sel, unsigned engine, const void *data) si_cp_write_data() argument
470 si_cp_copy_data(struct si_context *sctx, struct radeon_cmdbuf *cs, unsigned dst_sel, struct si_resource *dst, unsigned dst_offset, unsigned src_sel, struct si_resource *src, unsigned src_offset) si_cp_copy_data() argument
[all...]
H A Dsi_sqtt.c37 si_emit_spi_config_cntl(struct si_context* sctx,
41 si_thread_trace_init_bo(struct si_context *sctx) in si_thread_trace_init_bo() argument
43 unsigned max_se = sctx->screen->info.max_se; in si_thread_trace_init_bo()
44 struct radeon_winsys *ws = sctx->ws; in si_thread_trace_init_bo()
50 sctx->thread_trace->buffer_size = align64(sctx->thread_trace->buffer_size, in si_thread_trace_init_bo()
56 size += sctx->thread_trace->buffer_size * (uint64_t)max_se; in si_thread_trace_init_bo()
58 sctx->thread_trace->bo = in si_thread_trace_init_bo()
64 if (!sctx->thread_trace->bo) in si_thread_trace_init_bo()
71 si_se_is_disabled(struct si_context* sctx, unsigne argument
79 si_emit_thread_trace_start(struct si_context* sctx, struct radeon_cmdbuf *cs, uint32_t queue_family_index) si_emit_thread_trace_start() argument
244 si_copy_thread_trace_info_regs(struct si_context* sctx, struct radeon_cmdbuf *cs, unsigned se_index) si_copy_thread_trace_info_regs() argument
285 si_emit_thread_trace_stop(struct si_context *sctx, struct radeon_cmdbuf *cs, uint32_t queue_family_index) si_emit_thread_trace_stop() argument
379 si_thread_trace_start(struct si_context *sctx, int family, struct radeon_cmdbuf *cs) si_thread_trace_start() argument
433 si_thread_trace_stop(struct si_context *sctx, int family, struct radeon_cmdbuf *cs) si_thread_trace_stop() argument
486 si_thread_trace_init_cs(struct si_context *sctx) si_thread_trace_init_cs() argument
516 si_begin_thread_trace(struct si_context *sctx, struct radeon_cmdbuf *rcs) si_begin_thread_trace() argument
523 si_end_thread_trace(struct si_context *sctx, struct radeon_cmdbuf *rcs) si_end_thread_trace() argument
530 si_get_thread_trace(struct si_context *sctx, struct ac_thread_trace *thread_trace) si_get_thread_trace() argument
591 si_init_thread_trace(struct si_context *sctx) si_init_thread_trace() argument
656 si_destroy_thread_trace(struct si_context *sctx) si_destroy_thread_trace() argument
710 si_handle_thread_trace(struct si_context *sctx, struct radeon_cmdbuf *rcs) si_handle_thread_trace() argument
774 si_emit_thread_trace_userdata(struct si_context* sctx, struct radeon_cmdbuf *cs, const void *data, uint32_t num_dwords) si_emit_thread_trace_userdata() argument
798 si_emit_spi_config_cntl(struct si_context* sctx, struct radeon_cmdbuf *cs, bool enable) si_emit_spi_config_cntl() argument
824 si_sqtt_write_event_marker(struct si_context* sctx, struct radeon_cmdbuf *rcs, enum rgp_sqtt_marker_event_type api_type, uint32_t vertex_offset_user_data, uint32_t instance_offset_user_data, uint32_t draw_index_user_data) si_sqtt_write_event_marker() argument
856 si_write_event_with_dims_marker(struct si_context* sctx, struct radeon_cmdbuf *rcs, enum rgp_sqtt_marker_event_type api_type, uint32_t x, uint32_t y, uint32_t z) si_write_event_with_dims_marker() argument
877 si_sqtt_describe_barrier_start(struct si_context* sctx, struct radeon_cmdbuf *rcs) si_sqtt_describe_barrier_start() argument
889 si_sqtt_describe_barrier_end(struct si_context* sctx, struct radeon_cmdbuf *rcs, unsigned flags) si_sqtt_describe_barrier_end() argument
929 si_write_user_event(struct si_context* sctx, struct radeon_cmdbuf *rcs, enum rgp_sqtt_marker_user_event_type type, const char *str, int len) si_write_user_event() argument
1012 si_sqtt_add_code_object(struct si_context* sctx, uint64_t pipeline_hash, bool is_compute) si_sqtt_add_code_object() argument
1082 si_sqtt_register_pipeline(struct si_context* sctx, uint64_t pipeline_hash, uint64_t base_address, bool is_compute) si_sqtt_register_pipeline() argument
1100 si_sqtt_describe_pipeline_bind(struct si_context* sctx, uint64_t pipeline_hash, int bind_point) si_sqtt_describe_pipeline_bind() argument
[all...]
H A Dsi_blit.c44 void si_blitter_begin(struct si_context *sctx, enum si_blitter_op op) in si_blitter_begin() argument
46 util_blitter_save_vertex_shader(sctx->blitter, sctx->shader.vs.cso); in si_blitter_begin()
47 util_blitter_save_tessctrl_shader(sctx->blitter, sctx->shader.tcs.cso); in si_blitter_begin()
48 util_blitter_save_tesseval_shader(sctx->blitter, sctx->shader.tes.cso); in si_blitter_begin()
49 util_blitter_save_geometry_shader(sctx->blitter, sctx->shader.gs.cso); in si_blitter_begin()
50 util_blitter_save_so_targets(sctx in si_blitter_begin()
91 si_blitter_end(struct si_context *sctx) si_blitter_end() argument
127 si_blit_dbcb_copy(struct si_context *sctx, struct si_texture *src, struct si_texture *dst, unsigned planes, unsigned level_mask, unsigned first_layer, unsigned last_layer, unsigned first_sample, unsigned last_sample) si_blit_dbcb_copy() argument
199 si_blit_decompress_zs_planes_in_place(struct si_context *sctx, struct si_texture *texture, unsigned planes, unsigned level_mask, unsigned first_layer, unsigned last_layer) si_blit_decompress_zs_planes_in_place() argument
266 si_blit_decompress_zs_in_place(struct si_context *sctx, struct si_texture *texture, unsigned levels_z, unsigned levels_s, unsigned first_layer, unsigned last_layer) si_blit_decompress_zs_in_place() argument
292 si_decompress_depth(struct si_context *sctx, struct si_texture *tex, unsigned required_planes, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer) si_decompress_depth() argument
409 si_decompress_sampler_depth_textures(struct si_context *sctx, struct si_samplers *textures) si_decompress_sampler_depth_textures() argument
443 si_blit_decompress_color(struct si_context *sctx, struct si_texture *tex, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer, bool need_dcc_decompress, bool need_fmask_expand) si_blit_decompress_color() argument
552 si_decompress_color_texture(struct si_context *sctx, struct si_texture *tex, unsigned first_level, unsigned last_level, bool need_fmask_expand) si_decompress_color_texture() argument
566 si_decompress_sampler_color_textures(struct si_context *sctx, struct si_samplers *textures) si_decompress_sampler_color_textures() argument
588 si_decompress_image_color_textures(struct si_context *sctx, struct si_images *images) si_decompress_image_color_textures() argument
609 si_check_render_feedback_texture(struct si_context *sctx, struct si_texture *tex, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer) si_check_render_feedback_texture() argument
638 si_check_render_feedback_textures(struct si_context *sctx, struct si_samplers *textures, uint32_t in_use_mask) si_check_render_feedback_textures() argument
660 si_check_render_feedback_images(struct si_context *sctx, struct si_images *images, uint32_t in_use_mask) si_check_render_feedback_images() argument
682 si_check_render_feedback_resident_textures(struct si_context *sctx) si_check_render_feedback_resident_textures() argument
699 si_check_render_feedback_resident_images(struct si_context *sctx) si_check_render_feedback_resident_images() argument
716 si_check_render_feedback(struct si_context *sctx) si_check_render_feedback() argument
744 si_decompress_resident_textures(struct si_context *sctx) si_decompress_resident_textures() argument
767 si_decompress_resident_images(struct si_context *sctx) si_decompress_resident_images() argument
779 si_decompress_textures(struct si_context *sctx, unsigned shader_mask) si_decompress_textures() argument
849 struct si_context *sctx = (struct si_context *)ctx; si_decompress_subresource() local
902 struct si_context *sctx = (struct si_context *)ctx; si_resource_copy_region() local
990 si_do_CB_resolve(struct si_context *sctx, const struct pipe_blit_info *info, struct pipe_resource *dst, unsigned dst_level, unsigned dst_z, enum pipe_format format) si_do_CB_resolve() argument
1031 struct si_context *sctx = (struct si_context *)ctx; si_msaa_resolve_blit_via_CB() local
1165 struct si_context *sctx = (struct si_context *)ctx; si_blit() local
1227 struct si_context *sctx = (struct si_context *)ctx; si_gfx_blit() local
1253 struct si_context *sctx = (struct si_context *)ctx; si_generate_mipmap() local
1282 struct si_context *sctx = (struct si_context *)ctx; si_flush_resource() local
1299 si_flush_implicit_resources(struct si_context *sctx) si_flush_implicit_resources() argument
1308 si_decompress_dcc(struct si_context *sctx, struct si_texture *tex) si_decompress_dcc() argument
1322 si_init_blit_functions(struct si_context *sctx) si_init_blit_functions() argument
[all...]
H A Dsi_compute.c232 struct si_context *sctx = (struct si_context *)ctx; in si_create_compute_state() local
260 sel->compiler_ctx_state.debug = sctx->debug; in si_create_compute_state()
261 sel->compiler_ctx_state.is_debug_context = sctx->is_debug; in si_create_compute_state()
264 si_schedule_initial_compile(sctx, MESA_SHADER_COMPUTE, &sel->ready, &sel->compiler_ctx_state, in si_create_compute_state()
281 bool ok = si_shader_binary_upload(sctx->screen, &program->shader, 0); in si_create_compute_state()
282 si_shader_dump(sctx->screen, &program->shader, &sctx->debug, stderr, true); in si_create_compute_state()
297 struct si_context *sctx = (struct si_context *)ctx; in si_bind_compute_state() local
301 sctx->cs_shader_state.program = program; in si_bind_compute_state()
309 si_set_active_descriptors(sctx, in si_bind_compute_state()
338 struct si_context *sctx = (struct si_context *)ctx; si_set_global_binding() local
374 si_emit_initial_compute_regs(struct si_context *sctx, struct radeon_cmdbuf *cs) si_emit_initial_compute_regs() argument
466 si_setup_compute_scratch_buffer(struct si_context *sctx, struct si_shader *shader) si_setup_compute_scratch_buffer() argument
501 si_switch_compute_shader(struct si_context *sctx, struct si_compute *program, struct si_shader *shader, const amd_kernel_code_t *code_object, unsigned offset, bool *prefetch) si_switch_compute_shader() argument
599 setup_scratch_rsrc_user_sgprs(struct si_context *sctx, const amd_kernel_code_t *code_object, unsigned user_sgpr) setup_scratch_rsrc_user_sgprs() argument
641 si_setup_user_sgprs_co_v2(struct si_context *sctx, const amd_kernel_code_t *code_object, const struct pipe_grid_info *info, uint64_t kernel_args_va) si_setup_user_sgprs_co_v2() argument
723 si_upload_compute_input(struct si_context *sctx, const amd_kernel_code_t *code_object, const struct pipe_grid_info *info) si_upload_compute_input() argument
757 si_setup_nir_user_data(struct si_context *sctx, const struct pipe_grid_info *info) si_setup_nir_user_data() argument
800 si_emit_dispatch_packets(struct si_context *sctx, const struct pipe_grid_info *info) si_emit_dispatch_packets() argument
887 si_check_needs_implicit_sync(struct si_context *sctx) si_check_needs_implicit_sync() argument
932 struct si_context *sctx = (struct si_context *)ctx; si_launch_grid() local
1083 struct si_context *sctx = (struct si_context *)ctx; si_delete_compute_state() local
1102 si_init_compute_functions(struct si_context *sctx) si_init_compute_functions() argument
[all...]
H A Dsi_state_shaders.cpp766 static void si_emit_shader_es(struct si_context *sctx) in si_emit_shader_es() argument
768 struct si_shader *shader = sctx->queued.named.es; in si_emit_shader_es()
772 radeon_begin(&sctx->gfx_cs); in si_emit_shader_es()
773 radeon_opt_set_context_reg(sctx, R_028AAC_VGT_ESGS_RING_ITEMSIZE, in si_emit_shader_es()
778 radeon_opt_set_context_reg(sctx, R_028B6C_VGT_TF_PARAM, SI_TRACKED_VGT_TF_PARAM, in si_emit_shader_es()
782 radeon_opt_set_context_reg(sctx, R_028C58_VGT_VERTEX_REUSE_BLOCK_CNTL, in si_emit_shader_es()
785 radeon_end_update_context_roll(sctx); in si_emit_shader_es()
927 static void si_emit_shader_gs(struct si_context *sctx) in si_emit_shader_gs() argument
929 struct si_shader *shader = sctx->queued.named.gs; in si_emit_shader_gs()
933 radeon_begin(&sctx in si_emit_shader_gs()
[all...]
H A Dsi_state.h386 /* Indices into sctx->descriptors, laid out so that gfx and compute pipelines
469 #define si_pm4_state_changed(sctx, member) \
470 ((sctx)->queued.named.member != (sctx)->emitted.named.member)
472 #define si_pm4_state_enabled_and_changed(sctx, member) \
473 ((sctx)->queued.named.member && si_pm4_state_changed(sctx, member))
475 #define si_pm4_bind_state(sctx, member, value) \
477 (sctx)->queued.named.member = (value); \
478 if (value && value != (sctx)
[all...]
H A Dsi_state_binning.c63 static struct uvec2 si_get_color_bin_size(struct si_context *sctx, unsigned cb_target_enabled_4bit) in si_get_color_bin_size() argument
65 unsigned num_fragments = sctx->framebuffer.nr_color_samples; in si_get_color_bin_size()
69 for (unsigned i = 0; i < sctx->framebuffer.state.nr_cbufs; i++) { in si_get_color_bin_size()
73 struct si_texture *tex = (struct si_texture *)sctx->framebuffer.state.cbufs[i]->texture; in si_get_color_bin_size()
79 if (si_get_ps_iter_samples(sctx) >= 2) in si_get_color_bin_size()
174 return si_find_bin_size(sctx->screen, table, sum); in si_get_color_bin_size()
177 static struct uvec2 si_get_depth_bin_size(struct si_context *sctx) in si_get_depth_bin_size() argument
179 struct si_state_dsa *dsa = sctx->queued.named.dsa; in si_get_depth_bin_size()
181 if (!sctx->framebuffer.state.zsbuf || (!dsa->depth_enabled && !dsa->stencil_enabled)) { in si_get_depth_bin_size()
187 struct si_texture *tex = (struct si_texture *)sctx in si_get_depth_bin_size()
302 gfx10_get_bin_sizes(struct si_context *sctx, unsigned cb_target_enabled_4bit, struct uvec2 *color_bin_size, struct uvec2 *depth_bin_size) gfx10_get_bin_sizes() argument
405 si_emit_dpbb_disable(struct si_context *sctx) si_emit_dpbb_disable() argument
442 si_emit_dpbb_state(struct si_context *sctx) si_emit_dpbb_state() argument
[all...]
H A Dsi_query.c61 static void si_query_sw_destroy(struct si_context *sctx, struct si_query *squery) in si_query_sw_destroy() argument
65 sctx->b.screen->fence_reference(sctx->b.screen, &query->fence, NULL); in si_query_sw_destroy()
119 static bool si_query_sw_begin(struct si_context *sctx, struct si_query *squery) in si_query_sw_begin() argument
129 query->begin_result = sctx->num_draw_calls; in si_query_sw_begin()
132 query->begin_result = sctx->num_decompress_calls; in si_query_sw_begin()
135 query->begin_result = sctx->num_prim_restart_calls; in si_query_sw_begin()
138 query->begin_result = sctx->num_compute_calls; in si_query_sw_begin()
141 query->begin_result = sctx->num_cp_dma_calls; in si_query_sw_begin()
144 query->begin_result = sctx in si_query_sw_begin()
276 si_query_sw_end(struct si_context *sctx, struct si_query *squery) si_query_sw_end() argument
436 si_query_sw_get_result(struct si_context *sctx, struct si_query *squery, bool wait, union pipe_query_result *result) si_query_sw_get_result() argument
532 si_query_buffer_reset(struct si_context *sctx, struct si_query_buffer *buffer) si_query_buffer_reset() argument
557 si_query_buffer_alloc(struct si_context *sctx, struct si_query_buffer *buffer, bool (*prepare_buffer)(struct si_context *, struct si_query_buffer *), unsigned size) si_query_buffer_alloc() argument
594 si_query_hw_destroy(struct si_context *sctx, struct si_query *squery) si_query_hw_destroy() argument
603 si_query_hw_prepare_buffer(struct si_context *sctx, struct si_query_buffer *qbuf) si_query_hw_prepare_buffer() argument
756 si_update_occlusion_query_state(struct si_context *sctx, unsigned type, int diff) si_update_occlusion_query_state() argument
806 si_query_hw_do_emit_start(struct si_context *sctx, struct si_query_hw *query, struct si_resource *buffer, uint64_t va) si_query_hw_do_emit_start() argument
899 si_query_hw_emit_start(struct si_context *sctx, struct si_query_hw *query) si_query_hw_emit_start() argument
926 si_query_hw_do_emit_stop(struct si_context *sctx, struct si_query_hw *query, struct si_resource *buffer, uint64_t va) si_query_hw_do_emit_stop() argument
1008 si_query_hw_emit_stop(struct si_context *sctx, struct si_query_hw *query) si_query_hw_emit_stop() argument
1212 struct si_context *sctx = (struct si_context *)ctx; si_destroy_query() local
1220 struct si_context *sctx = (struct si_context *)ctx; si_begin_query() local
1226 si_query_hw_begin(struct si_context *sctx, struct si_query *squery) si_query_hw_begin() argument
1251 struct si_context *sctx = (struct si_context *)ctx; si_end_query() local
1257 si_query_hw_end(struct si_context *sctx, struct si_query *squery) si_query_hw_end() argument
1277 si_get_hw_query_params(struct si_context *sctx, struct si_query_hw *squery, int index, struct si_hw_query_params *params) si_get_hw_query_params() argument
1443 si_query_hw_suspend(struct si_context *sctx, struct si_query *query) si_query_hw_suspend() argument
1448 si_query_hw_resume(struct si_context *sctx, struct si_query *query) si_query_hw_resume() argument
1467 struct si_context *sctx = (struct si_context *)ctx; si_get_query_result() local
1477 struct si_context *sctx = (struct si_context *)ctx; si_get_query_result_resource() local
1488 si_query_hw_get_result(struct si_context *sctx, struct si_query *squery, bool wait, union pipe_query_result *result) si_query_hw_get_result() argument
1524 si_query_hw_get_result_resource(struct si_context *sctx, struct si_query *squery, enum pipe_query_flags flags, enum pipe_query_value_type result_type, int index, struct pipe_resource *resource, unsigned offset) si_query_hw_get_result_resource() argument
1669 struct si_context *sctx = (struct si_context *)ctx; si_render_condition() local
1720 si_suspend_queries(struct si_context *sctx) si_suspend_queries() argument
1728 si_resume_queries(struct si_context *sctx) si_resume_queries() argument
1937 si_init_query_functions(struct si_context *sctx) si_init_query_functions() argument
[all...]
H A Dsi_compute_blit.c31 static bool si_can_use_compute_blit(struct si_context *sctx, enum pipe_format format, in si_can_use_compute_blit() argument
45 if (has_dcc && is_store && sctx->gfx_level < GFX10) in si_can_use_compute_blit()
51 static void si_use_compute_copy_for_float_formats(struct si_context *sctx, in si_use_compute_copy_for_float_formats() argument
69 !si_can_use_compute_blit(sctx, texture->format, texture->nr_samples, true, true) && in si_use_compute_copy_for_float_formats()
70 si_can_use_compute_blit(sctx, texture->format, texture->nr_samples, true, false)) { in si_use_compute_copy_for_float_formats()
71 si_texture_disable_dcc(sctx, tex); in si_use_compute_copy_for_float_formats()
76 static enum si_cache_policy get_cache_policy(struct si_context *sctx, enum si_coherency coher, in get_cache_policy() argument
79 if ((sctx->gfx_level >= GFX9 && (coher == SI_COHERENCY_CB_META || in get_cache_policy()
82 (sctx->gfx_level >= GFX7 && coher == SI_COHERENCY_SHADER)) in get_cache_policy()
88 unsigned si_get_flush_flags(struct si_context *sctx, enu argument
106 si_is_buffer_idle(struct si_context *sctx, struct si_resource *buf, unsigned usage) si_is_buffer_idle() argument
113 si_improve_sync_flags(struct si_context *sctx, struct pipe_resource *dst, struct pipe_resource *src, unsigned *flags) si_improve_sync_flags() argument
151 si_launch_grid_internal(struct si_context *sctx, const struct pipe_grid_info *info, void *shader, unsigned flags) si_launch_grid_internal() argument
220 si_launch_grid_internal_ssbos(struct si_context *sctx, struct pipe_grid_info *info, void *shader, unsigned flags, enum si_coherency coher, unsigned num_buffers, const struct pipe_shader_buffer *buffers, unsigned writeable_bitmask) si_launch_grid_internal_ssbos() argument
266 si_compute_clear_buffer_rmw(struct si_context *sctx, struct pipe_resource *dst, unsigned dst_offset, unsigned size, uint32_t clear_value, uint32_t writebitmask, unsigned flags, enum si_coherency coher) si_compute_clear_buffer_rmw() argument
307 si_compute_clear_12bytes_buffer(struct si_context *sctx, struct pipe_resource *dst, unsigned dst_offset, unsigned size, const uint32_t *clear_value, unsigned flags, enum si_coherency coher) si_compute_clear_12bytes_buffer() argument
342 si_compute_do_clear_or_copy(struct si_context *sctx, struct pipe_resource *dst, unsigned dst_offset, struct pipe_resource *src, unsigned src_offset, unsigned size, const uint32_t *clear_value, unsigned clear_value_size, unsigned flags, enum si_coherency coher) si_compute_do_clear_or_copy() argument
414 si_clear_buffer(struct si_context *sctx, struct pipe_resource *dst, uint64_t offset, uint64_t size, uint32_t *clear_value, uint32_t clear_value_size, unsigned flags, enum si_coherency coher, enum si_clear_method method) si_clear_buffer() argument
507 si_copy_buffer(struct si_context *sctx, struct pipe_resource *dst, struct pipe_resource *src, uint64_t dst_offset, uint64_t src_offset, unsigned size, unsigned flags) si_copy_buffer() argument
547 si_launch_grid_internal_images(struct si_context *sctx, struct pipe_image_view *images, unsigned num_images, const struct pipe_grid_info *info, void *shader, unsigned flags) si_launch_grid_internal_images() argument
607 si_compute_copy_image(struct si_context *sctx, struct pipe_resource *dst, unsigned dst_level, struct pipe_resource *src, unsigned src_level, unsigned dstx, unsigned dsty, unsigned dstz, const struct pipe_box *src_box, unsigned flags) si_compute_copy_image() argument
777 si_retile_dcc(struct si_context *sctx, struct si_texture *tex) si_retile_dcc() argument
823 gfx9_clear_dcc_msaa(struct si_context *sctx, struct pipe_resource *res, uint32_t clear_value, unsigned flags, enum si_coherency coher) gfx9_clear_dcc_msaa() argument
876 struct si_context *sctx = (struct si_context *)ctx; si_compute_expand_fmask() local
948 si_init_compute_blit_functions(struct si_context *sctx) si_init_compute_blit_functions() argument
959 struct si_context *sctx = (struct si_context *)ctx; si_compute_clear_render_target() local
[all...]
H A Dgfx10_query.c33 static void emit_shader_query(struct si_context *sctx) in emit_shader_query() argument
35 assert(!list_is_empty(&sctx->shader_query_buffers)); in emit_shader_query()
38 list_last_entry(&sctx->shader_query_buffers, struct gfx10_sh_query_buffer, list); in emit_shader_query()
42 static void gfx10_release_query_buffers(struct si_context *sctx, in gfx10_release_query_buffers() argument
57 if (qbuf->list.next == &sctx->shader_query_buffers) in gfx10_release_query_buffers()
59 if (qbuf->list.prev == &sctx->shader_query_buffers) in gfx10_release_query_buffers()
68 static bool gfx10_alloc_query_buffer(struct si_context *sctx) in gfx10_alloc_query_buffer() argument
70 if (si_is_atom_dirty(sctx, &sctx->atoms.s.shader_query)) in gfx10_alloc_query_buffer()
75 if (!list_is_empty(&sctx in gfx10_alloc_query_buffer()
138 gfx10_sh_query_destroy(struct si_context *sctx, struct si_query *rquery) gfx10_sh_query_destroy() argument
145 gfx10_sh_query_begin(struct si_context *sctx, struct si_query *rquery) gfx10_sh_query_begin() argument
164 gfx10_sh_query_end(struct si_context *sctx, struct si_query *rquery) gfx10_sh_query_end() argument
233 gfx10_sh_query_get_result(struct si_context *sctx, struct si_query *rquery, bool wait, union pipe_query_result *result) gfx10_sh_query_get_result() argument
278 gfx10_sh_query_get_result_resource(struct si_context *sctx, struct si_query *rquery, enum pipe_query_flags flags, enum pipe_query_value_type result_type, int index, struct pipe_resource *resource, unsigned offset) gfx10_sh_query_get_result_resource() argument
443 gfx10_init_query(struct si_context *sctx) gfx10_init_query() argument
449 gfx10_destroy_query(struct si_context *sctx) gfx10_destroy_query() argument
[all...]
H A Dsi_cp_reg_shadowing.c69 si_create_shadowing_ib_preamble(struct si_context *sctx) in si_create_shadowing_ib_preamble() argument
80 if (sctx->screen->dpbb_allowed) { in si_create_shadowing_ib_preamble()
93 if (sctx->gfx_level >= GFX11) { in si_create_shadowing_ib_preamble()
125 } else if (sctx->gfx_level >= GFX10) { in si_create_shadowing_ib_preamble()
142 } else if (sctx->gfx_level == GFX9) { in si_create_shadowing_ib_preamble()
178 si_build_load_reg(sctx->screen, pm4, i, sctx->shadowed_regs); in si_create_shadowing_ib_preamble()
192 void si_init_cp_reg_shadowing(struct si_context *sctx) in si_init_cp_reg_shadowing() argument
194 if (sctx->screen->info.mid_command_buffer_preemption_enabled || in si_init_cp_reg_shadowing()
195 sctx in si_init_cp_reg_shadowing()
[all...]
H A Dsi_state.c71 static void si_emit_cb_render_state(struct si_context *sctx) in si_emit_cb_render_state() argument
73 struct radeon_cmdbuf *cs = &sctx->gfx_cs; in si_emit_cb_render_state()
74 struct si_state_blend *blend = sctx->queued.named.blend; in si_emit_cb_render_state()
77 uint32_t cb_target_mask = sctx->framebuffer.colorbuf_enabled_4bit & blend->cb_target_mask; in si_emit_cb_render_state()
86 if (blend->dual_src_blend && sctx->shader.ps.cso && in si_emit_cb_render_state()
87 (sctx->shader.ps.cso->info.colors_written & 0x3) != 0x3) in si_emit_cb_render_state()
93 if (sctx->screen->dpbb_allowed && sctx->last_cb_target_mask != cb_target_mask) { in si_emit_cb_render_state()
94 sctx->last_cb_target_mask = cb_target_mask; in si_emit_cb_render_state()
103 radeon_opt_set_context_reg(sctx, R_028238_CB_TARGET_MAS in si_emit_cb_render_state()
442 struct si_context *sctx = (struct si_context *)ctx; si_create_blend_state_mode() local
652 si_check_blend_dst_sampler_noop(struct si_context *sctx) si_check_blend_dst_sampler_noop() argument
706 struct si_context *sctx = (struct si_context *)ctx; si_draw_blend_dst_sampler_noop() local
720 struct si_context *sctx = (struct si_context *)ctx; si_draw_vstate_blend_dst_sampler_noop() local
730 struct si_context *sctx = (struct si_context *)ctx; si_bind_blend_state() local
786 struct si_context *sctx = (struct si_context *)ctx; si_delete_blend_state() local
796 struct si_context *sctx = (struct si_context *)ctx; si_set_blend_color() local
804 si_emit_blend_color(struct si_context *sctx) si_emit_blend_color() argument
820 struct si_context *sctx = (struct si_context *)ctx; si_set_clip_state() local
838 si_emit_clip_state(struct si_context *sctx) si_emit_clip_state() argument
848 si_emit_clip_regs(struct si_context *sctx) si_emit_clip_regs() argument
885 si_update_poly_offset_state(struct si_context *sctx) si_update_poly_offset_state() argument
1143 struct si_context *sctx = (struct si_context *)ctx; si_bind_rs_state() local
1222 struct si_context *sctx = (struct si_context *)ctx; si_delete_rs_state() local
1235 si_emit_stencil_ref(struct si_context *sctx) si_emit_stencil_ref() argument
1256 struct si_context *sctx = (struct si_context *)ctx; si_set_stencil_ref() local
1412 struct si_context *sctx = (struct si_context *)ctx; si_bind_dsa_state() local
1446 struct si_context *sctx = (struct si_context *)ctx; si_delete_dsa_state() local
1454 si_create_db_flush_dsa(struct si_context *sctx) si_create_db_flush_dsa() argument
1465 struct si_context *sctx = (struct si_context *)ctx; si_set_active_query_state() local
1483 si_set_occlusion_query_state(struct si_context *sctx, bool old_perfect_enable) si_set_occlusion_query_state() argument
1493 si_save_qbo_state(struct si_context *sctx, struct si_qbo_state *st) si_save_qbo_state() argument
1498 si_restore_qbo_state(struct si_context *sctx, struct si_qbo_state *st) si_restore_qbo_state() argument
1503 si_emit_db_render_state(struct si_context *sctx) si_emit_db_render_state() argument
2512 si_initialize_color_surface(struct si_context *sctx, struct si_surface *surf) si_initialize_color_surface() argument
2694 si_init_depth_surface(struct si_context *sctx, struct si_surface *surf) si_init_depth_surface() argument
2833 si_set_sampler_depth_decompress_mask(struct si_context *sctx, struct si_texture *tex) si_set_sampler_depth_decompress_mask() argument
2848 si_update_fb_dirtiness_after_rendering(struct si_context *sctx) si_update_fb_dirtiness_after_rendering() argument
2893 si_mark_display_dcc_dirty(struct si_context *sctx, struct si_texture *tex) si_mark_display_dcc_dirty() argument
2909 si_update_display_dcc_dirty(struct si_context *sctx) si_update_display_dcc_dirty() argument
2922 struct si_context *sctx = (struct si_context *)ctx; si_set_framebuffer_state() local
3200 si_emit_framebuffer_state(struct si_context *sctx) si_emit_framebuffer_state() argument
3619 si_emit_msaa_sample_locs(struct si_context *sctx) si_emit_msaa_sample_locs() argument
3680 si_out_of_order_rasterization(struct si_context *sctx) si_out_of_order_rasterization() argument
3737 si_emit_msaa_config(struct si_context *sctx) si_emit_msaa_config() argument
3865 si_update_ps_iter_samples(struct si_context *sctx) si_update_ps_iter_samples() argument
3875 struct si_context *sctx = (struct si_context *)ctx; si_set_min_samples() local
4526 struct si_context *sctx = (struct si_context *)ctx; si_create_sampler_view() local
4647 si_translate_border_color(struct si_context *sctx, const struct pipe_sampler_state *state, const union pipe_color_union *color, bool is_integer) si_translate_border_color() argument
4738 struct si_context *sctx = (struct si_context *)ctx; si_create_sampler_state() local
4815 struct si_context *sctx = (struct si_context *)ctx; si_set_sample_mask() local
4824 si_emit_sample_mask(struct si_context *sctx) si_emit_sample_mask() argument
5087 struct si_context *sctx = (struct si_context *)ctx; si_bind_vertex_elements() local
5136 struct si_context *sctx = (struct si_context *)ctx; si_delete_vertex_element() local
5150 struct si_context *sctx = (struct si_context *)ctx; si_set_vertex_buffers() local
5302 struct si_context *sctx = (struct si_context *)ctx; si_set_tess_state() local
5319 struct si_context *sctx = (struct si_context *)ctx; si_set_patch_vertices() local
5326 struct si_context *sctx = (struct si_context *)ctx; si_texture_barrier() local
5341 struct si_context *sctx = (struct si_context *)ctx; si_memory_barrier() local
5389 si_create_blend_custom(struct si_context *sctx, unsigned mode) si_create_blend_custom() argument
5399 si_init_state_compute_functions(struct si_context *sctx) si_init_state_compute_functions() argument
5408 si_init_state_functions(struct si_context *sctx) si_init_state_functions() argument
5485 si_set_grbm_gfx_index(struct si_context *sctx, struct si_pm4_state *pm4, unsigned value) si_set_grbm_gfx_index() argument
5491 si_set_grbm_gfx_index_se(struct si_context *sctx, struct si_pm4_state *pm4, unsigned se) si_set_grbm_gfx_index_se() argument
5500 si_write_harvested_raster_configs(struct si_context *sctx, struct si_pm4_state *pm4, unsigned raster_config, unsigned raster_config_1) si_write_harvested_raster_configs() argument
5520 si_set_raster_config(struct si_context *sctx, struct si_pm4_state *pm4) si_set_raster_config() argument
5552 si_init_cs_preamble_state(struct si_context *sctx, bool uses_reg_shadowing) si_init_cs_preamble_state() argument
[all...]
H A Dsi_pipe.h1299 void (*emit_spi_map[33])(struct si_context *sctx);
1325 void si_blitter_begin(struct si_context *sctx, enum si_blitter_op op);
1326 void si_blitter_end(struct si_context *sctx);
1327 void si_init_blit_functions(struct si_context *sctx);
1328 void si_decompress_textures(struct si_context *sctx, unsigned shader_mask);
1336 void si_decompress_dcc(struct si_context *sctx, struct si_texture *tex);
1337 void si_flush_implicit_resources(struct si_context *sctx);
1345 bool si_cs_is_buffer_referenced(struct si_context *sctx, struct pb_buffer *buf,
1347 void *si_buffer_map(struct si_context *sctx, struct si_resource *resource,
1364 void si_init_buffer_functions(struct si_context *sctx);
1658 si_shader_selector_reference(struct si_context *sctx, struct si_shader_selector **dst, struct si_shader_selector *src) si_shader_selector_reference() argument
1681 si_get_minimum_num_gfx_cs_dwords(struct si_context *sctx, unsigned num_draws) si_get_minimum_num_gfx_cs_dwords() argument
1692 si_context_add_resource_size(struct si_context *sctx, struct pipe_resource *r) si_context_add_resource_size() argument
1700 si_invalidate_draw_sh_constants(struct si_context *sctx) si_invalidate_draw_sh_constants() argument
1707 si_invalidate_draw_constants(struct si_context *sctx) si_invalidate_draw_constants() argument
1713 si_get_atom_bit(struct si_context *sctx, struct si_atom *atom) si_get_atom_bit() argument
1718 si_set_atom_dirty(struct si_context *sctx, struct si_atom *atom, bool dirty) si_set_atom_dirty() argument
1728 si_is_atom_dirty(struct si_context *sctx, struct si_atom *atom) si_is_atom_dirty() argument
1733 si_mark_atom_dirty(struct si_context *sctx, struct si_atom *atom) si_mark_atom_dirty() argument
1740 si_get_vs_inline(struct si_context *sctx, enum si_has_tess has_tess, enum si_has_gs has_gs) si_get_vs_inline() argument
1750 si_get_vs(struct si_context *sctx) si_get_vs() argument
1761 si_get_strmout_en(struct si_context *sctx) si_get_strmout_en() argument
1766 si_optimal_tcc_alignment(struct si_context *sctx, unsigned upload_size) si_optimal_tcc_alignment() argument
1788 si_make_CB_shader_coherent(struct si_context *sctx, unsigned num_samples, bool shaders_read_metadata, bool dcc_pipe_aligned) si_make_CB_shader_coherent() argument
1814 si_make_DB_shader_coherent(struct si_context *sctx, unsigned num_samples, bool include_stencil, bool shaders_read_metadata) si_make_DB_shader_coherent() argument
1871 si_get_ps_iter_samples(struct si_context *sctx) si_get_ps_iter_samples() argument
1879 si_get_total_colormask(struct si_context *sctx) si_get_total_colormask() argument
1970 radeon_add_to_buffer_list(struct si_context *sctx, struct radeon_cmdbuf *cs, struct si_resource *bo, unsigned usage) radeon_add_to_buffer_list() argument
1993 radeon_add_to_gfx_buffer_list_check_mem(struct si_context *sctx, struct si_resource *bo, unsigned usage, bool check_mem) radeon_add_to_gfx_buffer_list_check_mem() argument
2005 si_select_draw_vbo(struct si_context *sctx) si_select_draw_vbo() argument
2029 si_get_num_coverage_samples(struct si_context *sctx) si_get_num_coverage_samples() argument
2057 si_check_dirty_buffers_textures(struct si_context *sctx) si_check_dirty_buffers_textures() argument
[all...]
H A Dsi_debug.c38 static void si_dump_bo_list(struct si_context *sctx, const struct radeon_saved_cs *saved, FILE *f);
294 static void si_dump_mmapped_reg(struct si_context *sctx, FILE *f, unsigned offset) in si_dump_mmapped_reg() argument
296 struct radeon_winsys *ws = sctx->ws; in si_dump_mmapped_reg()
300 ac_dump_reg(f, sctx->gfx_level, offset, value, ~0); in si_dump_mmapped_reg()
303 static void si_dump_debug_registers(struct si_context *sctx, FILE *f) in si_dump_debug_registers() argument
306 si_dump_mmapped_reg(sctx, f, R_008010_GRBM_STATUS); in si_dump_debug_registers()
309 if (!sctx->screen->info.is_amdgpu) { in si_dump_debug_registers()
314 si_dump_mmapped_reg(sctx, f, R_008008_GRBM_STATUS2); in si_dump_debug_registers()
315 si_dump_mmapped_reg(sctx, f, R_008014_GRBM_STATUS_SE0); in si_dump_debug_registers()
316 si_dump_mmapped_reg(sctx, in si_dump_debug_registers()
389 si_print_current_ib(struct si_context *sctx, FILE *f) si_print_current_ib() argument
469 si_log_hw_flush(struct si_context *sctx) si_log_hw_flush() argument
532 si_dump_bo_list(struct si_context *sctx, const struct radeon_saved_cs *saved, FILE *f) si_dump_bo_list() argument
581 si_dump_framebuffer(struct si_context *sctx, struct u_log_context *log) si_dump_framebuffer() argument
746 si_dump_descriptors(struct si_context *sctx, gl_shader_stage stage, const struct si_shader_info *info, struct u_log_context *log) si_dump_descriptors() argument
803 si_dump_gfx_descriptors(struct si_context *sctx, const struct si_shader_ctx_state *state, struct u_log_context *log) si_dump_gfx_descriptors() argument
813 si_dump_compute_descriptors(struct si_context *sctx, struct u_log_context *log) si_dump_compute_descriptors() argument
969 si_dump_annotated_shaders(struct si_context *sctx, FILE *f) si_dump_annotated_shaders() argument
1020 struct si_context *sctx = (struct si_context *)ctx; si_dump_debug_state() local
1034 si_log_draw_state(struct si_context *sctx, struct u_log_context *log) si_log_draw_state() argument
1057 si_log_compute_state(struct si_context *sctx, struct u_log_context *log) si_log_compute_state() argument
1066 si_check_vm_faults(struct si_context *sctx, struct radeon_saved_cs *saved, enum amd_ip_type ring) si_check_vm_faults() argument
1115 si_init_debug_functions(struct si_context *sctx) si_init_debug_functions() argument
[all...]
H A Dsi_build_pm4.h64 #define radeon_end_update_context_roll(sctx) do { \
67 (sctx)->context_roll = true; \
168 #define radeon_opt_set_context_reg(sctx, offset, reg, val) do { \
170 if (((sctx->tracked_regs.reg_saved >> (reg)) & 0x1) != 0x1 || \
171 sctx->tracked_regs.reg_value[reg] != __value) { \
173 sctx->tracked_regs.reg_saved |= 0x1ull << (reg); \
174 sctx->tracked_regs.reg_value[reg] = __value; \
184 #define radeon_opt_set_context_reg2(sctx, offset, reg, val1, val2) do { \
186 if (((sctx->tracked_regs.reg_saved >> (reg)) & 0x3) != 0x3 || \
187 sctx
[all...]
H A Dsi_gfx_cs.c210 static void si_add_gds_to_buffer_list(struct si_context *sctx) in si_add_gds_to_buffer_list() argument
212 if (sctx->screen->gds) { in si_add_gds_to_buffer_list()
213 sctx->ws->cs_add_buffer(&sctx->gfx_cs, sctx->screen->gds, RADEON_USAGE_READWRITE, 0); in si_add_gds_to_buffer_list()
214 if (sctx->screen->gds_oa) { in si_add_gds_to_buffer_list()
215 sctx->ws->cs_add_buffer(&sctx->gfx_cs, sctx->screen->gds_oa, RADEON_USAGE_READWRITE, 0); in si_add_gds_to_buffer_list()
220 void si_allocate_gds(struct si_context *sctx) in si_allocate_gds() argument
315 si_install_draw_wrapper(struct si_context *sctx, pipe_draw_vbo_func wrapper, pipe_draw_vertex_state_func vstate_wrapper) si_install_draw_wrapper() argument
334 si_tmz_preamble(struct si_context *sctx) si_tmz_preamble() argument
349 struct si_context *sctx = (struct si_context *)ctx; si_draw_vbo_tmz_preamble() local
361 struct si_context *sctx = (struct si_context *)ctx; si_draw_vstate_tmz_preamble() local
563 si_trace_emit(struct si_context *sctx) si_trace_emit() argument
579 si_emit_surface_sync(struct si_context *sctx, struct radeon_cmdbuf *cs, unsigned cp_coher_cntl) si_emit_surface_sync() argument
902 si_emit_cache_flush(struct si_context *sctx, struct radeon_cmdbuf *cs) si_emit_cache_flush() argument
[all...]
/third_party/node/deps/openssl/openssl/crypto/ct/
H A Dct_sct_ctx.c25 SCT_CTX *sctx = OPENSSL_zalloc(sizeof(*sctx)); in SCT_CTX_new() local
27 if (sctx == NULL) { in SCT_CTX_new()
32 sctx->libctx = libctx; in SCT_CTX_new()
34 sctx->propq = OPENSSL_strdup(propq); in SCT_CTX_new()
35 if (sctx->propq == NULL) { in SCT_CTX_new()
37 OPENSSL_free(sctx); in SCT_CTX_new()
42 return sctx; in SCT_CTX_new()
45 void SCT_CTX_free(SCT_CTX *sctx) in SCT_CTX_free() argument
47 if (sctx in SCT_CTX_free()
122 SCT_CTX_set1_cert(SCT_CTX *sctx, X509 *cert, X509 *presigner) SCT_CTX_set1_cert() argument
204 ct_public_key_hash(SCT_CTX *sctx, X509_PUBKEY *pkey, unsigned char **hash, size_t *hash_len) ct_public_key_hash() argument
248 SCT_CTX_set1_issuer(SCT_CTX *sctx, const X509 *issuer) SCT_CTX_set1_issuer() argument
253 SCT_CTX_set1_issuer_pubkey(SCT_CTX *sctx, X509_PUBKEY *pubkey) SCT_CTX_set1_issuer_pubkey() argument
258 SCT_CTX_set1_pubkey(SCT_CTX *sctx, X509_PUBKEY *pubkey) SCT_CTX_set1_pubkey() argument
275 SCT_CTX_set_time(SCT_CTX *sctx, uint64_t time_in_ms) SCT_CTX_set_time() argument
[all...]
/third_party/openssl/crypto/ct/
H A Dct_sct_ctx.c25 SCT_CTX *sctx = OPENSSL_zalloc(sizeof(*sctx)); in SCT_CTX_new() local
27 if (sctx == NULL) { in SCT_CTX_new()
32 sctx->libctx = libctx; in SCT_CTX_new()
34 sctx->propq = OPENSSL_strdup(propq); in SCT_CTX_new()
35 if (sctx->propq == NULL) { in SCT_CTX_new()
37 OPENSSL_free(sctx); in SCT_CTX_new()
42 return sctx; in SCT_CTX_new()
45 void SCT_CTX_free(SCT_CTX *sctx) in SCT_CTX_free() argument
47 if (sctx in SCT_CTX_free()
122 SCT_CTX_set1_cert(SCT_CTX *sctx, X509 *cert, X509 *presigner) SCT_CTX_set1_cert() argument
204 ct_public_key_hash(SCT_CTX *sctx, X509_PUBKEY *pkey, unsigned char **hash, size_t *hash_len) ct_public_key_hash() argument
248 SCT_CTX_set1_issuer(SCT_CTX *sctx, const X509 *issuer) SCT_CTX_set1_issuer() argument
253 SCT_CTX_set1_issuer_pubkey(SCT_CTX *sctx, X509_PUBKEY *pubkey) SCT_CTX_set1_issuer_pubkey() argument
258 SCT_CTX_set1_pubkey(SCT_CTX *sctx, X509_PUBKEY *pubkey) SCT_CTX_set1_pubkey() argument
275 SCT_CTX_set_time(SCT_CTX *sctx, uint64_t time_in_ms) SCT_CTX_set_time() argument
[all...]
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha1_hw.c50 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; in aesni_cbc_hmac_sha1_init_key() local
57 SHA1_Init(&sctx->head); /* handy when benchmarking */ in aesni_cbc_hmac_sha1_init_key()
58 sctx->tail = sctx->head; in aesni_cbc_hmac_sha1_init_key()
59 sctx->md = sctx->head; in aesni_cbc_hmac_sha1_init_key()
127 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; in tls1_multi_block_encrypt() local
178 memcpy(blocks[0].c, sctx->md.data, 8); in tls1_multi_block_encrypt()
187 mctx->A[i] = sctx->md.h0; in tls1_multi_block_encrypt()
188 mctx->B[i] = sctx in tls1_multi_block_encrypt()
377 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; aesni_cbc_hmac_sha1_cipher() local
667 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; aesni_cbc_hmac_sha1_set_tls1_aad() local
717 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; aesni_cbc_hmac_sha1_tls1_multiblock_aad() local
[all...]
H A Dcipher_aes_cbc_hmac_sha256_hw.c52 PROV_AES_HMAC_SHA256_CTX *sctx = (PROV_AES_HMAC_SHA256_CTX *)vctx; in aesni_cbc_hmac_sha256_init_key() local
59 SHA256_Init(&sctx->head); /* handy when benchmarking */ in aesni_cbc_hmac_sha256_init_key()
60 sctx->tail = sctx->head; in aesni_cbc_hmac_sha256_init_key()
61 sctx->md = sctx->head; in aesni_cbc_hmac_sha256_init_key()
131 PROV_AES_HMAC_SHA256_CTX *sctx = (PROV_AES_HMAC_SHA256_CTX *)vctx; in tls1_multi_block_encrypt() local
182 memcpy(blocks[0].c, sctx->md.data, 8); in tls1_multi_block_encrypt()
192 mctx->A[i] = sctx->md.h[0]; in tls1_multi_block_encrypt()
193 mctx->B[i] = sctx in tls1_multi_block_encrypt()
400 PROV_AES_HMAC_SHA256_CTX *sctx = (PROV_AES_HMAC_SHA256_CTX *)vctx; aesni_cbc_hmac_sha256_cipher() local
720 PROV_AES_HMAC_SHA256_CTX *sctx = (PROV_AES_HMAC_SHA256_CTX *)vctx; aesni_cbc_hmac_sha256_set_tls1_aad() local
770 PROV_AES_HMAC_SHA256_CTX *sctx = (PROV_AES_HMAC_SHA256_CTX *)vctx; aesni_cbc_hmac_sha256_tls1_multiblock_aad() local
[all...]
/third_party/openssl/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha1_hw.c50 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; in aesni_cbc_hmac_sha1_init_key() local
57 SHA1_Init(&sctx->head); /* handy when benchmarking */ in aesni_cbc_hmac_sha1_init_key()
58 sctx->tail = sctx->head; in aesni_cbc_hmac_sha1_init_key()
59 sctx->md = sctx->head; in aesni_cbc_hmac_sha1_init_key()
127 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; in tls1_multi_block_encrypt() local
178 memcpy(blocks[0].c, sctx->md.data, 8); in tls1_multi_block_encrypt()
187 mctx->A[i] = sctx->md.h0; in tls1_multi_block_encrypt()
188 mctx->B[i] = sctx in tls1_multi_block_encrypt()
377 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; aesni_cbc_hmac_sha1_cipher() local
667 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; aesni_cbc_hmac_sha1_set_tls1_aad() local
717 PROV_AES_HMAC_SHA1_CTX *sctx = (PROV_AES_HMAC_SHA1_CTX *)vctx; aesni_cbc_hmac_sha1_tls1_multiblock_aad() local
[all...]

Completed in 25 milliseconds

123456