radv: only emit descriptor sgprs when needed
authorDave Airlie <airlied@redhat.com>
Mon, 28 Nov 2016 02:43:27 +0000 (02:43 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Dec 2016 23:25:54 +0000 (23:25 +0000)
commitdfef9c7c1fcf0070784d1a19386d885bb1b3f511
tree81c86766277ab8676aa2eff784695829b82adc14
parentae61ddabe8cfa1e2c8c55c478a7ea70563f64b63
radv: only emit descriptor sgprs when needed

This only emits enough descriptor sgprs for the number
of sets in the layout, and only emits the descriptors
necessary for the current stage.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c