aco: skip scratch buffer init when its arg is not used
authorQiang Yu <yuq825@gmail.com>
Fri, 14 Apr 2023 07:51:34 +0000 (15:51 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Apr 2023 08:39:46 +0000 (08:39 +0000)
commitfbe7aec446f177ca8e0910a157c63f1d4b1df7be
tree09efa6032cc2b52b839f1c968c1995cceb6baee3
parent9cd3aa173ab72f88c959b8c03be642855e189d96
aco: skip scratch buffer init when its arg is not used

radeonsi does not pass scratch buffer address by arg,
but dynamical relocation symbol when upload. Just skip
this part to enable radeonsi use aco, but it will fail
when spill.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22525>
src/amd/compiler/aco_instruction_selection.cpp