aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-09-12 01:38:53 +0200
committerMarek Olšák <[email protected]>2016-09-13 20:38:25 +0200
commit15a127bc2c3267f35e0d78ebc205e1686a5a5e3f (patch)
treefcb427f1b9327317698794f206316abb0b38d69d /src/gallium
parent35d284d08e3402bb6dabb885fddcf8fc28e73ca5 (diff)
radeonsi: fix FP64 UBO loads with indirect uniform block indexing
No known tests. Cc: [email protected] Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 6d30d1c9eb3..be6fae75ab0 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1924,8 +1924,7 @@ static LLVMValueRef fetch_constant(
addr2 = lp_build_add(&bld_base->uint_bld, addr2,
lp_build_const_int32(base->gallivm, idx * 4));
- result2 = buffer_load_const(ctx, ctx->const_buffers[buf],
- addr2);
+ result2 = buffer_load_const(ctx, bufp, addr2);
result = radeon_llvm_emit_fetch_64bit(bld_base, type,
result, result2);