summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-01-30 13:58:05 +1000
committerDave Airlie <[email protected]>2018-01-31 05:37:16 +1000
commit16dd0eb517407bcd3040b0f5f7eb31f1bdc48a48 (patch)
tree3d4cd5ef7c3dd0969446b74d032db8b8d44a62f7
parent8d633f067b8a3d74e3f39faea0773a229d4b93b3 (diff)
ac/llvm: bump the number of results to 8.
This function can get access for a 64-bit dvec4, which means we have to load 8 components. This fixes: R600_DEBUG=nir ./bin/shader_runner generated_tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-abs-dvec4.shader_test -auto Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/amd/common/ac_llvm_build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index 5e08508fedb..6afe7f97236 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -983,7 +983,7 @@ ac_build_buffer_load(struct ac_llvm_context *ctx,
if (allow_smem && !glc && !slc) {
assert(vindex == NULL);
- LLVMValueRef result[4];
+ LLVMValueRef result[8];
for (int i = 0; i < num_channels; i++) {
if (i) {