radeonsi: move 2nd-shader descriptor pointers into s[0:1]
authorMarek Olšák <marek.olsak@amd.com>
Fri, 2 Feb 2018 20:35:20 +0000 (21:35 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 24 Feb 2018 22:08:29 +0000 (23:08 +0100)
commit190e064e63e3acb603cd63488ea822605f71ac32
treeacdbf0b651a429fda740889b818d85b19d48913c
parent1d1df76d2b3b65f18002cec1957c6115b5bd12a5
radeonsi: move 2nd-shader descriptor pointers into s[0:1]

If 32-bit pointers are supported, both pointers can be moved into s[0:1]
and then ESGS has exactly the same user data SGPR declarations as VS.

If 32-bit pointers are not supported, only one pointer can be moved into
s[0:1]. In that case, the 2nd pointer is moved before TCS constants,
so that the location is the same in HS and GS.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h