Home
last modified time | relevance | path

Searched refs:cs_prog_data (Results 1 – 22 of 22) sorted by relevance

/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dgfx6_constant_state.c298 const struct brw_cs_prog_data *cs_prog_data, in brw_upload_cs_push_constants() argument
303 (struct brw_stage_prog_data*) cs_prog_data; in brw_upload_cs_push_constants()
312 brw_cs_get_dispatch_info(&brw->screen->devinfo, cs_prog_data, in brw_upload_cs_push_constants()
315 brw_cs_push_const_total_size(cs_prog_data, dispatch.threads); in brw_upload_cs_push_constants()
330 if (cs_prog_data->push.cross_thread.size > 0) { in brw_upload_cs_push_constants()
333 i < cs_prog_data->push.cross_thread.dwords; in brw_upload_cs_push_constants()
341 if (cs_prog_data->push.per_thread.size > 0) { in brw_upload_cs_push_constants()
344 8 * (cs_prog_data->push.per_thread.regs * t + in brw_upload_cs_push_constants()
345 cs_prog_data->push.cross_thread.regs); in brw_upload_cs_push_constants()
346 unsigned src = cs_prog_data->push.cross_thread.dwords; in brw_upload_cs_push_constants()
[all …]
DgenX_state_upload.c4205 struct brw_cs_prog_data *cs_prog_data = local
4209 brw_upload_cs_push_constants(brw, cp, cs_prog_data, stage_state);
4270 struct brw_cs_prog_data *cs_prog_data = brw_cs_prog_data(prog_data); local
4274 brw_cs_get_dispatch_info(devinfo, cs_prog_data, brw->compute.group_size);
4359 ALIGN(cs_prog_data->push.per_thread.regs * dispatch.threads +
4360 cs_prog_data->push.cross_thread.regs, 2);
4365 brw_cs_push_const_total_size(cs_prog_data, dispatch.threads);
4377 brw_cs_prog_data_prog_offset(cs_prog_data,
4386 .ConstantURBEntryReadLength = cs_prog_data->push.per_thread.regs,
4390 .BarrierEnable = cs_prog_data->uses_barrier,
[all …]
Dbrw_state.h277 const struct brw_cs_prog_data *cs_prog_data,
Dbrw_wm_surface_state.c1672 const struct brw_cs_prog_data *cs_prog_data = in brw_upload_cs_work_groups_surface() local
1675 if (prog && cs_prog_data->uses_num_work_groups) { in brw_upload_cs_work_groups_surface()
1677 cs_prog_data->binding_table.work_groups_start; in brw_upload_cs_work_groups_surface()
/third_party/mesa3d/src/intel/blorp/
Dblorp.c296 struct brw_cs_prog_data *cs_prog_data) in blorp_compile_cs() argument
303 memset(cs_prog_data, 0, sizeof(*cs_prog_data)); in blorp_compile_cs()
309 cs_prog_data->base.binding_table.texture_start = BLORP_TEXTURE_BT_INDEX; in blorp_compile_cs()
321 cs_prog_data->base.nr_params = nr_params; in blorp_compile_cs()
322 cs_prog_data->base.param = rzalloc_array(NULL, uint32_t, nr_params); in blorp_compile_cs()
329 .prog_data = cs_prog_data, in blorp_compile_cs()
336 ralloc_free(cs_prog_data->base.param); in blorp_compile_cs()
337 cs_prog_data->base.param = NULL; in blorp_compile_cs()
Dblorp_genX_exec.h2020 const struct brw_cs_prog_data *cs_prog_data = params->cs_prog_data; in blorp_get_compute_push_const() local
2022 ALIGN(brw_cs_push_const_total_size(cs_prog_data, threads), 64); in blorp_get_compute_push_const()
2023 assert(cs_prog_data->push.cross_thread.size + in blorp_get_compute_push_const()
2024 cs_prog_data->push.per_thread.size == sizeof(params->wm_inputs)); in blorp_get_compute_push_const()
2044 if (cs_prog_data->push.cross_thread.size > 0) { in blorp_get_compute_push_const()
2045 memcpy(dst, src, cs_prog_data->push.cross_thread.size); in blorp_get_compute_push_const()
2046 dst += cs_prog_data->push.cross_thread.size; in blorp_get_compute_push_const()
2047 src += cs_prog_data->push.cross_thread.size; in blorp_get_compute_push_const()
2050 assert(GFX_VERx10 < 125 || cs_prog_data->push.per_thread.size == 0); in blorp_get_compute_push_const()
2052 if (cs_prog_data->push.per_thread.size > 0) { in blorp_get_compute_push_const()
[all …]
Dblorp_priv.h236 struct brw_cs_prog_data *cs_prog_data; member
454 struct brw_cs_prog_data *cs_prog_data);
Dblorp_clear.c126 &params->cs_prog_kernel, &params->cs_prog_data)) in blorp_params_get_clear_kernel_cs()
177 &params->cs_prog_kernel, &params->cs_prog_data); in blorp_params_get_clear_kernel_cs()
Dblorp_blit.c1557 &params->cs_prog_kernel, &params->cs_prog_data)) in brw_blorp_get_blit_kernel_cs()
1584 &params->cs_prog_kernel, &params->cs_prog_data); in brw_blorp_get_blit_kernel_cs()
/third_party/mesa3d/src/intel/vulkan/
Danv_cmd_buffer.c1172 const struct brw_cs_prog_data *cs_prog_data = get_cs_prog_data(pipeline); in anv_cmd_buffer_cs_push_constants() local
1176 brw_cs_get_dispatch_info(devinfo, cs_prog_data, NULL); in anv_cmd_buffer_cs_push_constants()
1178 brw_cs_push_const_total_size(cs_prog_data, dispatch.threads); in anv_cmd_buffer_cs_push_constants()
1200 if (cs_prog_data->push.cross_thread.size > 0) { in anv_cmd_buffer_cs_push_constants()
1201 memcpy(dst, src, cs_prog_data->push.cross_thread.size); in anv_cmd_buffer_cs_push_constants()
1202 dst += cs_prog_data->push.cross_thread.size; in anv_cmd_buffer_cs_push_constants()
1203 src += cs_prog_data->push.cross_thread.size; in anv_cmd_buffer_cs_push_constants()
1206 if (cs_prog_data->push.per_thread.size > 0) { in anv_cmd_buffer_cs_push_constants()
1208 memcpy(dst, src, cs_prog_data->push.per_thread.size); in anv_cmd_buffer_cs_push_constants()
1212 (range->start * 32 + cs_prog_data->push.cross_thread.size); in anv_cmd_buffer_cs_push_constants()
[all …]
DgenX_pipeline.c2619 const struct brw_cs_prog_data *cs_prog_data = get_cs_prog_data(pipeline); local
2620 anv_pipeline_setup_l3_config(&pipeline->base, cs_prog_data->base.total_shared > 0);
2640 const struct brw_cs_prog_data *cs_prog_data = get_cs_prog_data(pipeline); local
2642 anv_pipeline_setup_l3_config(&pipeline->base, cs_prog_data->base.total_shared > 0);
2645 brw_cs_get_dispatch_info(devinfo, cs_prog_data, NULL);
2647 ALIGN(cs_prog_data->push.per_thread.regs * dispatch.threads +
2648 cs_prog_data->push.cross_thread.regs, 2);
2698 brw_cs_prog_data_prog_offset(cs_prog_data, dispatch.simd_size),
2706 .BarrierEnable = cs_prog_data->uses_barrier,
2708 encode_slm_size(GFX_VER, cs_prog_data->base.total_shared),
[all …]
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_state.c4568 struct brw_cs_prog_data *cs_prog_data = (void *) shader->prog_data; in iris_store_cs_state() local
4573 desc.ConstantURBEntryReadLength = cs_prog_data->push.per_thread.regs; in iris_store_cs_state()
4575 cs_prog_data->push.cross_thread.regs; in iris_store_cs_state()
4577 assert(cs_prog_data->push.per_thread.regs == 0); in iris_store_cs_state()
4578 assert(cs_prog_data->push.cross_thread.regs == 0); in iris_store_cs_state()
4580 desc.BarrierEnable = cs_prog_data->uses_barrier; in iris_store_cs_state()
6916 struct brw_cs_prog_data *cs_prog_data = (void *) prog_data; in iris_upload_compute_walker() local
6918 brw_cs_get_dispatch_info(devinfo, cs_prog_data, grid->block); in iris_upload_compute_walker()
6950 .NumberOfBarriers = cs_prog_data->uses_barrier, in iris_upload_compute_walker()
6955 assert(brw_cs_push_const_total_size(cs_prog_data, dispatch.threads) == 0); in iris_upload_compute_walker()
[all …]
Diris_program.c2231 struct brw_cs_prog_data *cs_prog_data = in iris_compile_cs() local
2233 struct brw_stage_prog_data *prog_data = &cs_prog_data->base; in iris_compile_cs()
2257 .prog_data = cs_prog_data, in iris_compile_cs()
2334 iris_fill_cs_push_const_buffer(struct brw_cs_prog_data *cs_prog_data, in iris_fill_cs_push_const_buffer() argument
2338 assert(brw_cs_push_const_total_size(cs_prog_data, threads) > 0); in iris_fill_cs_push_const_buffer()
2339 assert(cs_prog_data->push.cross_thread.size == 0); in iris_fill_cs_push_const_buffer()
2340 assert(cs_prog_data->push.per_thread.dwords == 1); in iris_fill_cs_push_const_buffer()
2341 assert(cs_prog_data->base.param[0] == BRW_PARAM_BUILTIN_SUBGROUP_ID); in iris_fill_cs_push_const_buffer()
Diris_context.h867 void iris_fill_cs_push_const_buffer(struct brw_cs_prog_data *cs_prog_data,
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_program.c2519 struct brw_cs_prog_data *cs_prog_data = in crocus_compile_cs() local
2521 struct brw_stage_prog_data *prog_data = &cs_prog_data->base; in crocus_compile_cs()
2541 .prog_data = cs_prog_data, in crocus_compile_cs()
2562 prog_data, sizeof(*cs_prog_data), NULL, in crocus_compile_cs()
2619 crocus_fill_cs_push_const_buffer(struct brw_cs_prog_data *cs_prog_data, in crocus_fill_cs_push_const_buffer() argument
2623 assert(brw_cs_push_const_total_size(cs_prog_data, threads) > 0); in crocus_fill_cs_push_const_buffer()
2624 assert(cs_prog_data->push.cross_thread.size == 0); in crocus_fill_cs_push_const_buffer()
2625 assert(cs_prog_data->push.per_thread.dwords == 1); in crocus_fill_cs_push_const_buffer()
2626 assert(cs_prog_data->base.param[0] == BRW_PARAM_BUILTIN_SUBGROUP_ID); in crocus_fill_cs_push_const_buffer()
Dcrocus_state.c8050 struct brw_cs_prog_data *cs_prog_data = (void *) prog_data; local
8052 brw_cs_get_dispatch_info(devinfo, cs_prog_data, grid->block);
8070 cs_prog_data->local_size[0] == 0 /* Variable local group size */) {
8122 ALIGN(cs_prog_data->push.per_thread.regs * dispatch.threads +
8123 cs_prog_data->push.cross_thread.regs, 2);
8129 cs_prog_data->local_size[0] == 0 /* Variable local group size */) {
8131 assert(cs_prog_data->push.cross_thread.dwords == 0 &&
8132 cs_prog_data->push.per_thread.dwords == 1 &&
8133 cs_prog_data->base.param[0] == BRW_PARAM_BUILTIN_SUBGROUP_ID);
8135 brw_cs_push_const_total_size(cs_prog_data, dispatch.threads);
[all …]
Dcrocus_context.h775 void crocus_fill_cs_push_const_buffer(struct brw_cs_prog_data *cs_prog_data,
/third_party/mesa3d/src/intel/compiler/
Dbrw_fs.cpp9967 brw_cs_push_const_total_size(const struct brw_cs_prog_data *cs_prog_data, in brw_cs_push_const_total_size() argument
9970 assert(cs_prog_data->push.per_thread.size % REG_SIZE == 0); in brw_cs_push_const_total_size()
9971 assert(cs_prog_data->push.cross_thread.size % REG_SIZE == 0); in brw_cs_push_const_total_size()
9972 return cs_prog_data->push.per_thread.size * threads + in brw_cs_push_const_total_size()
9973 cs_prog_data->push.cross_thread.size; in brw_cs_push_const_total_size()
9986 struct brw_cs_prog_data *cs_prog_data) in cs_fill_push_const_info() argument
9988 const struct brw_stage_prog_data *prog_data = &cs_prog_data->base; in cs_fill_push_const_info()
10011 fill_push_const_block_info(&cs_prog_data->push.cross_thread, cross_thread_dwords); in cs_fill_push_const_info()
10012 fill_push_const_block_info(&cs_prog_data->push.per_thread, per_thread_dwords); in cs_fill_push_const_info()
10014 assert(cs_prog_data->push.cross_thread.dwords % 8 == 0 || in cs_fill_push_const_info()
[all …]
Dbrw_compiler.h1772 brw_cs_push_const_total_size(const struct brw_cs_prog_data *cs_prog_data,
Dbrw_fs_nir.cpp3806 struct brw_cs_prog_data *cs_prog_data = brw_cs_prog_data(prog_data); in nir_emit_cs_intrinsic() local
3825 cs_prog_data->uses_barrier = true; in nir_emit_cs_intrinsic()
3851 cs_prog_data->binding_table.work_groups_start; in nir_emit_cs_intrinsic()
3853 cs_prog_data->uses_num_work_groups = true; in nir_emit_cs_intrinsic()
/third_party/mesa3d/docs/relnotes/
D20.1.0.rst1015 - intel/compiler: Replace cs_prog_data->push.total with a helper
1016 - anv: Stop using cs_prog_data->threads
1017 - iris: Stop using cs_prog_data->threads
1018 - intel/compiler: Remove cs_prog_data->threads
D20.3.0.rst3131 - intel/compiler, anv: Delete cs_prog_data->slm_size