radv: Replace supports_spill with explict_scratch_args
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 12 Nov 2019 14:38:46 +0000 (15:38 +0100)
committerConnor Abbott <cwabbott0@gmail.com>
Mon, 25 Nov 2019 13:17:51 +0000 (14:17 +0100)
commite7f4cadd02ca88fd3af5a396c71a33e91088228b
tree1e8946082edd47efd58a071d12462b0fb4fae643
parent4d6676d78a4dc01a7affa5a97a24108685eae7ea
radv: Replace supports_spill with explict_scratch_args

The former was always true and hence dead code. We will want to
explicitly declare the ring offset register with ACO, but we also want
to declare the scratch offset too, and we can't try to disable it since
ACO also supports spilling and the determination of whether spilling has
to happen occurs well after setting up registers. So replace
supports_spill with something that will actually be used for ACO.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/compiler/aco_instruction_selection_setup.cpp
src/amd/vulkan/radv_nir_to_llvm.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h
src/amd/vulkan/radv_shader_args.c
src/amd/vulkan/radv_shader_args.h