From: Marek Olšák Date: Sun, 11 Sep 2016 23:38:53 +0000 (+0200) Subject: radeonsi: fix FP64 UBO loads with indirect uniform block indexing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15a127bc2c3267f35e0d78ebc205e1686a5a5e3f;p=mesa.git radeonsi: fix FP64 UBO loads with indirect uniform block indexing No known tests. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Nicolai Hähnle --- 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);