agx: Add pass to lower layer ID writes
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 28 Aug 2023 12:14:58 +0000 (08:14 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 1 Oct 2023 16:32:12 +0000 (12:32 -0400)
commit7d94f2ee49caa3201e8a6605a9103d719d2c5ffe
tree75d667090047edd49196782a2409bf011fa08c12
parent175819eec605a4548207ef028da735cc759ed31b
agx: Add pass to lower layer ID writes

The hardware needs the layer ID and the viewport index packed together. That
consumes an entire varying slot, if we want those available in the frag shader
we need a separate slot. Add a pass to insert the extra packed write.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/asahi/compiler/agx_nir.h
src/asahi/compiler/agx_nir_lower_layer.c [new file with mode: 0644]
src/asahi/compiler/meson.build