summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_build.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-06-03 19:43:44 -0400
committerMarek Olšák <[email protected]>2019-06-11 20:05:21 -0400
commit4773f5a293d103ea225b54274026018275d208d9 (patch)
tree06e6cd23c8cfa3eec16aeec319a34b778447b903 /src/amd/common/ac_llvm_build.c
parent579003e7bd979d3285c60becd1357c5f95799cca (diff)
radeonsi: use the ac helper for index buffer stores in the culling shader
Diffstat (limited to 'src/amd/common/ac_llvm_build.c')
-rw-r--r--src/amd/common/ac_llvm_build.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index 0972406b5cb..88e89d1dfb4 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -1194,16 +1194,17 @@ ac_build_buffer_store_format(struct ac_llvm_context *ctx,
LLVMValueRef voffset,
unsigned num_channels,
bool glc,
+ bool slc,
bool writeonly_memory)
{
if (HAVE_LLVM >= 0x800) {
ac_build_llvm8_buffer_store_common(ctx, rsrc, data, vindex,
voffset, NULL, num_channels,
- ctx->f32, glc, false,
+ ctx->f32, glc, slc,
writeonly_memory, true, true);
} else {
ac_build_llvm7_buffer_store_common(ctx, rsrc, data, vindex, voffset,
- num_channels, glc, false,
+ num_channels, glc, slc,
writeonly_memory, true);
}
}