radv: fix allocating number of user sgprs if streamout is used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 Sep 2019 13:58:25 +0000 (15:58 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 13 Sep 2019 05:55:30 +0000 (07:55 +0200)
commit8137df3a46abc6aa6ad0c7179d042e76ca2b2299
tree2cacaa4bf8e40fc8d64a0a6e4b5efc8d3a71087d
parentacfa2340e60f83f927c8f4426773580d34239c18
radv: fix allocating number of user sgprs if streamout is used

streamout_buffers is assigned after that function, so the previous
fix was completely wrong. This probably fix something when streamout
buffers and push constants are used/inlined in the same shader.

Fixes: 378e2d24143 ("radv: fix computing number of user SGPRs for streamout buffers")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_nir_to_llvm.c