ac/nir: do not reserve user SGPRs for unused descriptor sets
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Feb 2018 17:15:23 +0000 (18:15 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 15 Feb 2018 13:53:30 +0000 (14:53 +0100)
commit579b33c1fd6962fb85e6cec23035df3ba826cc50
treed1c95d5e6bfedb573fc0de89f9e60522dd3fa2ba
parent309854148c8bc9c344052dab928ee07292cb623d
ac/nir: do not reserve user SGPRs for unused descriptor sets

In theory this might lead to corruption if we bind a descriptor
set which is unused, because LLVM is smart and it can re-use
unused user SGPRs. In practice, this doesn't seem to fix
anything.

As a side effect, this will reduce the number of emitted
SH_REG packets.

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