mesa/src/asahi/compiler
Alyssa Rosenzweig 0f974d1f90 asahi: Convert to SPDX headers
Also drop my email address in the copyright lines and fix some "Copyright 208
Alyssa Rosenzweig" lines, I'm not *that* old. Together this drops a lot of
boilerplate without losing any meaningful licensing information. SPDX is already
in use for the MIT-licensed code in turnip, venus, and a few other scattered
parts of the tree, so this should be ok from a Mesa licensing standpoint.

This reduces friction to create new files, by parsing the copy/paste boilerplate
and being short enough you can easily type it out if you want.  It makes new
files seem less daunting: 20 lines of header for 30 lines of code is
discouraging, but 2 lines of header for 30 lines of code is reasonable for a
simple compiler pass. This has technical effects, as lowering the barrier to
making new files should encourage people to split code into more modular files
with (hopefully positive) effects on project compile time.

This helps with consistency between files. Across the tree we have at least a
half dozen variants of the MIT license text (probably more), plus code that uses
SPDX headers instead. I've already been using SPDX headers in Asahi manually, so
you can tell old vs new code based on the headers.

Finally, it means less for reviewers to scroll through adding files. Minimal
actual cognitive burden for reviewers thanks to banner blindness, but the big
headers still bloat diffs that add/delete files.

I originally proposed this in December (for much more of the tree) but someone
requested I wait until January to discuss. I've been trying to get in touch with
them since then. It is now almost April and, with still no response, I'd like to
press forward with this. So with a joint sign-off from the major authors of the
code in question, let's do this.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Emma Anholt <emma@anholt.net>
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Rose Hudson <rose@krx.sh>
Acked-by: Lyude Paul [over IRC: "yes I'm fine with that"]
Meh'd-by: Rob Clark <robdclark@chromium.org>

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22062>
2023-03-28 05:14:00 +00:00
..
test asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_builder.h.py asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_compile.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_compile.h asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_compiler.h asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_dce.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_debug.h asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_insert_waits.c agx: isolate compiler debug flags 2023-03-08 02:07:44 +00:00
agx_internal_formats.h agx: Add agx_internal_format_supports_mask helper 2023-02-21 08:10:15 +00:00
agx_ir.c agx: Factor out allows_16bit_immediate check 2023-03-05 09:27:02 +00:00
agx_liveness.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_lower_64bit.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_lower_parallel_copy.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_lower_pseudo.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_lower_uniform_sources.c agx: Model local loads/stores 2023-02-20 18:50:39 +00:00
agx_minifloat.h asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_nir.h agx: Mask shifts in the backend 2023-03-05 07:52:22 +00:00
agx_nir_algebraic.py agx: Implement extract_[ui]16 2023-03-11 14:15:50 +00:00
agx_nir_lower_address.c agx/lower_address: Handle 16-bit offsets 2023-03-07 02:58:35 +00:00
agx_nir_lower_frag_sidefx.c agx: Fix clang-formatting 2023-03-10 06:33:01 +00:00
agx_nir_lower_load_mask.c asahi: Clang-format the subtree 2022-12-27 22:46:29 +00:00
agx_nir_lower_shared_bitsize.c agx: Lower shared memory offsets to 16-bit 2023-02-20 18:50:39 +00:00
agx_nir_lower_texture.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_nir_lower_ubo.c agx: Use load_global_constant for UBO lowering 2023-01-11 20:36:51 +00:00
agx_nir_lower_zs_emit.c agx: Lower discard to zs_emit when zs_emit used 2023-01-05 11:49:23 -05:00
agx_nir_opt_preamble.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_opcodes.c.py asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_opcodes.h.py asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_opcodes.py asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_opt_cse.c asahi: fix a few typos 2023-03-17 22:11:33 +00:00
agx_optimizer.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_pack.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_print.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_register_allocate.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
agx_validate.c asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00
meson.build asahi: Convert to SPDX headers 2023-03-28 05:14:00 +00:00