mesa/src/intel/compiler
Caio Oliveira 1cdc4be14b intel/compiler: Don't allocate memory for SIMD select error handling
The position in the error array already indicate the SIMD in question,
so take off all the formatted printing from the errors -- which in some
cases were just not needed.  We lose a little bit of extra context but
it is all easily derivable from the message and the SIMD.

This also will remove the overhead when SIMD selection is being used to
just to find the selected dispatch width -- at a point where the shaders
were already compiled -- and the errors are not used at all.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9849
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25336>
2023-09-22 16:23:02 +00:00
..
brw_cfg.cpp
brw_cfg.h
brw_clip.h
brw_clip_line.c intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
brw_clip_point.c intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
brw_clip_tri.c intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
brw_clip_unfilled.c intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
brw_clip_util.c intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
brw_compile_clip.c compiler: Rename shader_prim to mesa_prim and replace all usage of pipe_prim_type with mesa_prim 2023-06-03 03:29:03 +00:00
brw_compile_ff_gs.c intel/compiler: Introduce a new brw_isa_info structure 2022-06-30 23:46:35 +00:00
brw_compile_sf.c intel/compiler: Introduce a new brw_isa_info structure 2022-06-30 23:46:35 +00:00
brw_compiler.c nir: unify lower_find_msb with has_{find_msb_rev,uclz} 2023-08-22 12:08:37 +00:00
brw_compiler.h anv: track what kind of pipeline a fragment shader may be used with 2023-09-12 02:51:31 +00:00
brw_dead_control_flow.cpp
brw_dead_control_flow.h
brw_debug_recompile.c intel/compiler: Delete sampler key handling for planar format stuff 2022-12-09 10:18:25 +00:00
brw_disasm.c intel/fs: enable extended bindless surface offset 2023-05-30 06:36:37 +00:00
brw_disasm_info.c intel/eu: Handle compaction when inserting validation errors 2022-07-28 21:31:45 +00:00
brw_disasm_info.h intel/eu: Handle compaction when inserting validation errors 2022-07-28 21:31:45 +00:00
brw_eu.c intel/compiler: export brw_num_sources_from_inst 2022-12-10 03:59:19 +00:00
brw_eu.h intel/eu/xe2+: Fix encoding of various message descriptors for change in register size. 2023-09-20 17:19:36 -07:00
brw_eu_compact.c intel/compiler: don't allocate compaction arrays on the stack 2022-10-28 07:10:58 +00:00
brw_eu_defines.h intel/fs: add support for sparse accesses 2023-07-27 02:02:30 +03:00
brw_eu_emit.c intel/compiler: Adjust barrier emission for Xe2+ 2023-09-20 17:19:36 -07:00
brw_eu_util.c
brw_eu_validate.c intel/eu/xe2+: Update validation of GRF region size to account for Xe2 reg size 2023-09-20 17:19:36 -07:00
brw_fs.cpp intel/compiler: Don't allocate memory for SIMD select error handling 2023-09-22 16:23:02 +00:00
brw_fs.h intel/fs/xe2+: Update BS payload setup for Xe2 reg size. 2023-09-20 17:19:36 -07:00
brw_fs_bank_conflicts.cpp intel/compiler: Introduce a new brw_isa_info structure 2022-06-30 23:46:35 +00:00
brw_fs_builder.h intel/fs/xe2+: Round up fs_builder::vgrf() size calculation to HW register unit. 2023-09-20 17:19:36 -07:00
brw_fs_cmod_propagation.cpp intel/fs: avoid cmod optimization on instruction with different write_mask 2023-01-24 07:35:42 +00:00
brw_fs_combine_constants.cpp intel/fs: New VGRF packing scheme for constant combining 2023-08-29 19:01:37 +00:00
brw_fs_copy_propagation.cpp intel/fs: Merge copy prop dataflow loops 2023-09-14 22:31:23 +00:00
brw_fs_cse.cpp
brw_fs_dead_code_eliminate.cpp intel/compiler: Eliminate SHADER_OPCODE_UNTYPED_ATOMIC_FLOAT 2023-01-19 08:42:22 +00:00
brw_fs_generator.cpp intel/fs/xe2+: Scale BRW_MAX_MSG_LENGTH by native register size. 2023-09-20 17:19:36 -07:00
brw_fs_live_variables.cpp intel/fs: Don't continue fixed point iteration just because liveout changes 2023-09-14 22:31:22 +00:00
brw_fs_live_variables.h
brw_fs_lower_pack.cpp intel/fs: Move packHalf2x16 handling to lower_pack() 2023-03-09 23:26:17 +00:00
brw_fs_lower_regioning.cpp intel/fs/xe2+: Update regioning lowering offset alignment checks for Xe2 regs. 2023-09-20 17:19:36 -07:00
brw_fs_nir.cpp intel/fs: Update SSBO & shared uniform block loads for Xe2 2023-09-20 23:06:16 -07:00
brw_fs_reg_allocate.cpp intel/xe2+: Round up size to reg_unit() in fs_reg_alloc::alloc_spill_reg(). 2023-09-20 17:19:36 -07:00
brw_fs_register_coalesce.cpp intel/compiler: Make MAX_VGRF_SIZE macro depend on devinfo and update it for Xe2. 2023-09-20 17:19:36 -07:00
brw_fs_saturate_propagation.cpp brw: fix saturate propagation region overlap range 2022-12-09 00:39:05 +00:00
brw_fs_scoreboard.cpp Revert "intel/fs: Fix inferred_sync_pipe for F16TO32 opcodes" 2023-03-09 23:26:17 +00:00
brw_fs_sel_peephole.cpp
brw_fs_thread_payload.cpp intel/fs/xe2+: Update TASK/MESH payload setup for Xe2 reg size. 2023-09-20 17:19:36 -07:00
brw_fs_validate.cpp intel/compiler: add more validation for acc register usage 2023-06-21 08:15:59 +00:00
brw_fs_visitor.cpp intel/fs: add support for sparse accesses 2023-07-27 02:02:30 +03:00
brw_gfx_ver_enum.h intel/compiler: Fix brw_gfx_ver_enum.h to be a proper header file 2022-06-30 23:46:35 +00:00
brw_inst.h intel/fs: enable extended bindless surface offset 2023-05-30 06:36:37 +00:00
brw_interpolation_map.c
brw_ir.h intel/compiler: Make MAX_VGRF_SIZE macro depend on devinfo and update it for Xe2. 2023-09-20 17:19:36 -07:00
brw_ir_allocator.h intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
brw_ir_analysis.h
brw_ir_fs.h intel/fs: add support for sparse accesses 2023-07-27 02:02:30 +03:00
brw_ir_performance.cpp intel/fs/xe2+: Fixes for increased accumulator register width. 2023-09-20 17:19:36 -07:00
brw_ir_performance.h
brw_ir_vec4.h
brw_isa_info.h intel/compiler: Remove use of thread_local for opcode tables 2022-06-30 23:46:35 +00:00
brw_kernel.c nir: move the libclc lowering over to functions file. 2023-09-12 01:57:50 +00:00
brw_kernel.h
brw_lower_logical_sends.cpp intel/compiler: Update ray-tracing intrinsic lowering for Xe2 2023-09-20 23:06:16 -07:00
brw_mesh.cpp intel/compiler: Don't allocate memory for SIMD select error handling 2023-09-22 16:23:02 +00:00
brw_nir.c nir/spirv: Add inverse_ballot intrinsic 2023-09-20 14:41:18 +00:00
brw_nir.h intel/fs: move lower of non-uniform at_sample barycentric to NIR 2023-08-29 23:19:13 +00:00
brw_nir_analyze_boolean_resolves.c intel: Collapse is_ssa checks 2023-08-03 22:40:29 +00:00
brw_nir_analyze_ubo_ranges.c nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
brw_nir_attribute_workarounds.c nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
brw_nir_blockify_uniform_loads.c nir: s/live_ssa_def/live_def/ 2023-08-15 17:44:27 +00:00
brw_nir_clamp_image_1d_2d_array_sizes.c nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
brw_nir_clamp_per_vertex_loads.c treewide: Use nir_shader_intrinsic_pass sometimes 2023-08-24 15:48:02 +00:00
brw_nir_lower_alpha_to_coverage.c intel/compiler: fix dynamic alpha-to-coverage handling 2023-08-29 23:19:12 +00:00
brw_nir_lower_conversions.c nir: Drop nir_alu_dest 2023-08-14 21:22:53 +00:00
brw_nir_lower_cs_intrinsics.c intel/compiler: drop 64 bit handling for cl workgroup intrinsics 2023-08-30 07:04:33 +00:00
brw_nir_lower_intersection_shader.c treewide: Drop nir_ssa_for_src users 2023-09-18 10:25:17 -04:00
brw_nir_lower_non_uniform_barycentric_at_sample.c intel/fs: move lower of non-uniform at_sample barycentric to NIR 2023-08-29 23:19:13 +00:00
brw_nir_lower_non_uniform_resource_intel.c treewide: Use nir_shader_intrinsic_pass sometimes 2023-08-24 15:48:02 +00:00
brw_nir_lower_ray_queries.c treewide: Drop nir_ssa_for_src users 2023-09-18 10:25:17 -04:00
brw_nir_lower_rt_intrinsics.c treewide: Use nir_before/after_impl for more elaborate cases 2023-08-30 19:30:58 +00:00
brw_nir_lower_shader_calls.c treewide: Use nir_before/after_impl for more elaborate cases 2023-08-30 19:30:58 +00:00
brw_nir_lower_shading_rate_output.c treewide: Use nir_shader_intrinsic_pass sometimes 2023-08-24 15:48:02 +00:00
brw_nir_lower_sparse.c nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
brw_nir_lower_storage_image.c nir: Drop most uses if nir_instr_rewrite_src() 2023-08-18 01:00:15 +00:00
brw_nir_opt_peephole_ffma.c nir: remove unused param from nir_alu_src_copy() 2023-09-08 03:01:39 +00:00
brw_nir_opt_peephole_imul32x16.c nir: remove unused param from nir_alu_src_copy() 2023-09-08 03:01:39 +00:00
brw_nir_rt.c treewide: Use nir_before/after_impl in easy cases 2023-08-30 19:30:58 +00:00
brw_nir_rt.h anv: support VK_PIPELINE_CREATE_RAY_TRACING_SKIP_* 2022-10-20 00:03:55 +00:00
brw_nir_rt_builder.h nir: Drop "SSA" from NIR language 2023-08-12 16:44:41 -04:00
brw_nir_tcs_workarounds.c nir: Drop "SSA" from NIR language 2023-08-12 16:44:41 -04:00
brw_nir_trig_workarounds.py
brw_packed_float.c
brw_predicated_break.cpp
brw_prim.h intel/compiler: Split 3DPRIM_* defines out to a separate header. 2022-06-30 23:46:35 +00:00
brw_private.h intel/compiler: Don't allocate memory for SIMD select error handling 2023-09-22 16:23:02 +00:00
brw_reg.h intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
brw_reg_type.c
brw_reg_type.h
brw_rt.h intel/rt: Fix L3 bank performance bottlenecks due to SW stack stride alignment. 2023-02-26 11:48:33 -08:00
brw_schedule_instructions.cpp intel/fs/xe2+: Fix grf_count in post-RA scheduling for updated register file size. 2023-09-20 17:19:36 -07:00
brw_shader.cpp intel/compiler/xe2+: Represent dispatch_grf_start_reg in native GRF units. 2023-09-20 17:19:36 -07:00
brw_shader.h intel/compiler: rework input parameters 2023-07-20 09:08:08 +00:00
brw_simd_selection.cpp intel/compiler: Don't allocate memory for SIMD select error handling 2023-09-22 16:23:02 +00:00
brw_vec4.cpp intel/compiler/xe2+: Represent dispatch_grf_start_reg in native GRF units. 2023-09-20 17:19:36 -07:00
brw_vec4.h intel/vec4: Stop passing around nir_dest 2023-08-14 21:22:53 +00:00
brw_vec4_builder.h
brw_vec4_cmod_propagation.cpp intel: fixes -Werror,-Wunused-but-set-variable for clang-15 2022-11-17 23:17:40 +00:00
brw_vec4_copy_propagation.cpp intel/compiler: Introduce a new brw_isa_info structure 2022-06-30 23:46:35 +00:00
brw_vec4_cse.cpp intel/compiler: Rename vec4 state URB opcodes to have VEC4_ prefix 2022-07-08 19:45:34 +00:00
brw_vec4_dead_code_eliminate.cpp
brw_vec4_generator.cpp intel/compiler: use shader source hash in shader dump code 2023-07-20 09:08:08 +00:00
brw_vec4_gs_nir.cpp nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
brw_vec4_gs_visitor.cpp intel/compiler/xe2+: Represent dispatch_grf_start_reg in native GRF units. 2023-09-20 17:19:36 -07:00
brw_vec4_gs_visitor.h intel/compiler: rework input parameters 2023-07-20 09:08:08 +00:00
brw_vec4_live_variables.cpp
brw_vec4_live_variables.h
brw_vec4_nir.cpp nir: Rename nir_instr_type_ssa_undef to nir_instr_type_undef 2023-08-15 17:44:27 +00:00
brw_vec4_reg_allocate.cpp intel/compiler: Make MAX_VGRF_SIZE macro depend on devinfo and update it for Xe2. 2023-09-20 17:19:36 -07:00
brw_vec4_surface_builder.cpp
brw_vec4_surface_builder.h
brw_vec4_tcs.cpp intel/compiler/xe2+: Represent dispatch_grf_start_reg in native GRF units. 2023-09-20 17:19:36 -07:00
brw_vec4_tcs.h intel/compiler/xe2+: Represent dispatch_grf_start_reg in native GRF units. 2023-09-20 17:19:36 -07:00
brw_vec4_tes.cpp nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
brw_vec4_tes.h intel/compiler: rework input parameters 2023-07-20 09:08:08 +00:00
brw_vec4_visitor.cpp compiler/types: Remove unused GLSL_TYPE_FUNCTION and related functions 2023-09-12 23:18:12 +00:00
brw_vec4_vs.h intel/compiler: rework input parameters 2023-07-20 09:08:08 +00:00
brw_vec4_vs_visitor.cpp intel/compiler: rework input parameters 2023-07-20 09:08:08 +00:00
brw_vue_map.c intel/compiler: Store the number of position slots in the VUE map 2022-08-31 02:00:18 +00:00
gfx6_gs_visitor.cpp intel/compiler: Rename vec4 state URB opcodes to have VEC4_ prefix 2022-07-08 19:45:34 +00:00
gfx6_gs_visitor.h intel/compiler: rework input parameters 2023-07-20 09:08:08 +00:00
intel_clc.c clc: rework optional subgroup feature 2023-07-07 12:27:35 +00:00
meson.build intel: Allow using intel_clc from the system 2023-09-01 21:36:02 +00:00
test_eu_compact.cpp intel/compiler: Fixes [-Wdeprecated-declarations] in test_eu_compact.cpp 2022-08-23 15:19:16 +00:00
test_eu_validate.cpp intel/eu/validate: Add some validation of ADD3 2023-06-06 06:10:53 +00:00
test_fs_cmod_propagation.cpp intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
test_fs_copy_propagation.cpp intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
test_fs_saturate_propagation.cpp intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
test_fs_scoreboard.cpp intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
test_simd_selection.cpp intel/compiler: Don't allocate memory for SIMD select error handling 2023-09-22 16:23:02 +00:00
test_vec4_cmod_propagation.cpp intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
test_vec4_copy_propagation.cpp intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
test_vec4_dead_code_eliminate.cpp intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
test_vec4_register_coalesce.cpp intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler from gallium 2023-08-03 22:00:15 +00:00
test_vf_float_conversions.cpp