amd/common: correctly detect if we need ring buffers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Dec 2017 19:57:35 +0000 (20:57 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 Jan 2018 08:49:51 +0000 (09:49 +0100)
commit7643c715278caa8c98246c2359d7a70ecb3b7455
treef8d594a01afca7eb672b9bb280e884c0f05067b6
parent50cfad0298bbb4e341664ed0ec8b4d9b429988dc
amd/common: correctly detect if we need ring buffers

When allocate_user_sgprs() was called, ctx->stage was actually
unset and 0 is for the vertex shader. This doesn't change
anything for now because of the spill support thing.

Though, the number of user SGPRs has to be fixed for merged
shaders on GFX9. It was broken before anyway.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c