aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/llvm/ac_nir_to_llvm.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-11-22 17:41:22 -0500
committerMarek Olšák <[email protected]>2019-11-25 16:48:27 -0500
commitf671cc4d95eaf9ecfaafb216afeff7dc89f66cbf (patch)
tree4309fd0c0e64d959d27072d7c33236de37e062fa /src/amd/llvm/ac_nir_to_llvm.c
parent8afab607ac37871771cd75ac9dfdaea3bea65d25 (diff)
ac: set swizzled bit in cache policy as a hint not to merge loads/stores
LLVM now merges loads and stores for all opcodes, so this must be set. Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/llvm/ac_nir_to_llvm.c')
-rw-r--r--src/amd/llvm/ac_nir_to_llvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c
index 9e9ddf62555..2eba80a9c38 100644
--- a/src/amd/llvm/ac_nir_to_llvm.c
+++ b/src/amd/llvm/ac_nir_to_llvm.c
@@ -1650,7 +1650,7 @@ static void visit_store_ssbo(struct ac_nir_context *ctx,
ac_build_buffer_store_dword(&ctx->ac, rsrc, data,
num_channels, offset,
ctx->ac.i32_0, 0,
- cache_policy, false);
+ cache_policy);
}
}
}