summaryrefslogtreecommitdiff
path: root/src/amd/compiler/aco_spill.cpp
diff options
context:
space:
mode:
authorTimur Kristóf <timur.kristof@gmail.com>2022-05-23 14:33:38 +0200
committerMarge Bot <emma+marge@anholt.net>2022-05-24 12:33:49 +0000
commit7761b4d89ea14b6d38a370b22307bfd0e42709ea (patch)
treee7a3aeb77c51ae395faa8a92fa895b65c0649e0e /src/amd/compiler/aco_spill.cpp
parentb63403054237c3e408f2662beb52ec65db0aee30 (diff)
downloadmesa-7761b4d89ea14b6d38a370b22307bfd0e42709ea.tar.gz
aco: Fix scratch with task shaders.
Task shaders work like compute shaders, their scratch pointer is currently located at the first two user SGPRs. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16692>
Diffstat (limited to 'src/amd/compiler/aco_spill.cpp')
-rw-r--r--src/amd/compiler/aco_spill.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/compiler/aco_spill.cpp b/src/amd/compiler/aco_spill.cpp
index 1ef2b575f9f..6f5aa7b42c7 100644
--- a/src/amd/compiler/aco_spill.cpp
+++ b/src/amd/compiler/aco_spill.cpp
@@ -1402,7 +1402,7 @@ load_scratch_resource(spill_ctx& ctx, Temp& scratch_offset,
}
Temp private_segment_buffer = ctx.program->private_segment_buffer;
- if (ctx.program->stage != compute_cs)
+ if (ctx.program->stage.hw != HWStage::CS)
private_segment_buffer =
bld.smem(aco_opcode::s_load_dwordx2, bld.def(s2), private_segment_buffer, Operand::zero());