radv: do not add extra SGPR when push constants are not used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 18 Dec 2017 18:38:58 +0000 (19:38 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 19 Dec 2017 20:22:18 +0000 (21:22 +0100)
commit0c4a30eb51d0affe85ff9bd80b733ca5285221e1
treeb4a72c6e7fbe3ed39141f3140d9cb575e3b80f0e
parent39097282f738f00ad1e5e44791907db43d3e4c7c
radv: do not add extra SGPR when push constants are not used

This is not because the vertex stage needs some push constants
that other stages need them too. This should reduce the number
of loaded SGPRs in some situations.

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