mesa/src/amd
Rhys Perry d686805876 aco: fix target calculation when vgpr spilling introduces sgpr spilling
A shader might require vgpr spilling but not require sgpr spilling. In
that case, the spiller lowers the sgpr target by 5 which could mean sgpr
spilling is then required. Then the vgpr target has to be lowered to make
space for the linear vgprs. Previously, space wasn't make for the linear
vgprs.

Found while testing the spiller on the pipeline-db with a lowered limit

Fixes: a7ff1bb5b9
   ('aco: simplify calculation of target register pressure when spilling')

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3257>
(cherry picked from commit 590c26beab)

Conflicts:
	src/amd/compiler/aco_spill.cpp
2020-02-03 08:31:30 -08:00
..
addrlib amd: fix empty-body issues 2020-01-07 09:20:49 -08:00
common ac/gpu_info: always use distributed tessellation on gfx10 2020-01-09 10:38:33 -08:00
compiler aco: fix target calculation when vgpr spilling introduces sgpr spilling 2020-02-03 08:31:30 -08:00
llvm ac/nir: fix out-of-bound access when loading constants from global 2019-12-12 09:22:54 -08:00
registers radeonsi: adjust RB+ blend optimization settings 2019-07-30 22:06:23 -04:00
vulkan radv: do not allow sparse resources with multi-planar formats 2020-02-03 08:31:30 -08:00
Android.addrlib.mk android: amd/addrlib: add gfx10 support 2019-07-10 09:03:55 +02:00
Android.common.mk android: amd/common: export amd/llvm headers 2019-10-14 10:46:45 +02:00
Android.compiler.mk android: aco: add support for libmesa_aco 2019-09-28 15:56:34 +02:00
Android.mk android: aco: add support for libmesa_aco 2019-09-28 15:56:34 +02:00
Makefile.sources android: aco: fix Lower to CSSA 2019-10-31 15:12:56 -07:00
meson.build amd: Move all amd/common code that depends on LLVM to amd/llvm. 2019-10-08 00:44:08 +00:00