OSDN Git Service

freedreno/ir3: rework varying packing
authorRob Clark <robdclark@gmail.com>
Sun, 24 Mar 2019 15:58:21 +0000 (11:58 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 30 Mar 2019 16:56:01 +0000 (12:56 -0400)
commit831f1a05c0de3f9623115d17bf0904ebe1c4a74e
treeb9048cb50dd446c8b7fd95c78fb7f9c84b1ee0b1
parent91a1354cd6e2cad77799b5ce68927d954bb0213c
freedreno/ir3: rework varying packing

Originally we kept track of a table of inputs.  But with new-style frag
inputs this becomes awkward.  Re-work it so that initially we assigned
un-packed varying locations, and then after the shader is compiled scan
to find actual used inputs, and re-pack.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_compiler_nir.c