mesa/src/panfrost/bifrost
Alyssa Rosenzweig d01628d24d pan/bi: Remove conversion lowering
Inherited from Midgard, it's easier to just do at NIR->BIR time now that
we have a builder that doesn't suck. Impeded certain optimizations.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10065>
2021-04-06 19:35:33 +00:00
..
bi_builder.h.py pan/bi: Extend the bi_builder to support type variants correctly 2021-03-11 14:30:19 +00:00
bi_layout.c pan/bi: Extract bi_ec0_packed helper 2021-02-08 14:07:29 +00:00
bi_liveness.c pan/bi: Make bi_writemask take a destination 2021-02-22 19:17:50 +00:00
bi_lower_swizzle.c pan/bi: Lower swizzles 2021-04-06 19:35:33 +00:00
bi_opcodes.c.py pan/bi: Emit branch and table bits in opcode table 2021-01-29 16:55:44 +00:00
bi_opcodes.h.py pan/bi: Emit branch and table bits in opcode table 2021-01-29 16:55:44 +00:00
bi_opt_copy_prop.c pan/bi: Only run copyprop once 2021-04-03 12:47:29 -04:00
bi_opt_dce.c pan/bi: Only run DCE once 2021-04-03 12:47:29 -04:00
bi_opt_push_ubo.c panfrost: Add a knob to disable the UBO -> push constants optimization 2021-03-11 15:10:57 +00:00
bi_pack.c pan/bi: Allow @rNULL with tied operands 2021-02-18 21:48:22 +00:00
bi_packer.c.py pan/bi: Add w0 to the 'h01' swizzle bucket 2021-01-18 20:49:45 +00:00
bi_print.c pan/bi: Add pcrel_idx to bi_clause 2021-02-08 14:07:29 +00:00
bi_print_common.c pan/bi: Move modifier prints out of common code 2020-12-23 12:48:06 -05:00
bi_print_common.h pan/bi: Move modifier prints out of common code 2020-12-23 12:48:06 -05:00
bi_printer.c.py pan/bi: Materialize *DTSEL_IMM in the scheduler 2021-02-18 21:48:22 +00:00
bi_quirks.h pan/bi: Lower transcendentals on G71 2021-02-08 13:55:12 +00:00
bi_ra.c pan/bi: Mark message-passing sources/dests live 2021-03-07 15:10:12 +00:00
bi_schedule.c pan/bi: Handle 16-bit blend sr_count 2021-04-03 12:47:29 -04:00
bi_scoreboard.c pan/bi: Stub scoreboarding 2021-02-18 21:48:21 +00:00
bi_test_pack.c pan/bi: Add packing format tests 2021-01-29 16:55:44 +00:00
bifrost.h pan/bi: Remove unused definitions 2021-02-22 19:17:50 +00:00
bifrost_compile.c pan/bi: Generalize f2i16, f2u16 2021-04-06 19:35:33 +00:00
bifrost_compile.h pan/bi: Implement fsin/fcos 2021-03-05 15:15:10 +00:00
bifrost_isa.py pan/bi: Adapt builder to dest count 2021-02-22 19:17:50 +00:00
bifrost_nir.h pan/bi: Import algebraic pass from midgard 2020-03-10 19:25:59 +00:00
bifrost_nir_algebraic.py pan/bi: Remove conversion lowering 2021-04-06 19:35:33 +00:00
bir.c pan/bi: Make bi_writemask take a destination 2021-02-22 19:17:50 +00:00
cmdline.c panfrost: Move the shader compilation logic out of the gallium driver 2021-02-15 11:23:46 +00:00
compiler.h pan/bi: Lower swizzles 2021-04-06 19:35:33 +00:00
disassemble.c pan/bi: Fix M1/M2 decoding in disassembler 2021-01-29 16:55:43 +00:00
disassemble.h pan/bi: Move bi_constants to bifrost.h 2021-01-29 16:55:44 +00:00
gen_disasm.py pan/bi: Rename isa_parse to bifrost_isa 2020-12-23 17:06:57 +00:00
ISA.xml pan/bi: Handle 16-bit blend sr_count 2021-04-03 12:47:29 -04:00
meson.build pan/bi: Lower swizzles 2021-04-06 19:35:33 +00:00
Notes.txt pan/bi: Move notes on ADD ops to notes file 2020-03-03 00:03:50 +00:00
README.md pan/bi: Document register conventions 2021-04-03 12:47:29 -04:00

Bifrost compiler

Register file

Defined partially in software, partially in hardware.

Blend shaders

R0 - R3: input (color #0) R4 - R7: input (color #1) R8 - R15: general purpose R48: return address

Fragment

Anything live during BLEND must respect blend shader registers.

R0 - R3: preloaded (message #0) R4 - R7: preloaded (message #1) R57 - R63: preloaded (various)

R0 - R15: general purpose (full threads) R48 - R63: general purpose (full threads)

R32 - R47: general purpose (half threads, or v6)