diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-10-18 18:40:38 +0200 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-10-24 09:06:16 +0100 |
commit | 039d1e6f11c69dfe5d380e1cf568ab579507ef07 (patch) | |
tree | 01823ba80df45cdbc076d93f98c872bf372b7f0f /src/gallium | |
parent | ba6efd48c3ab36ea532d0b1b2f5493b6d9b1937b (diff) | |
download | external_mesa3d-039d1e6f11c69dfe5d380e1cf568ab579507ef07.zip external_mesa3d-039d1e6f11c69dfe5d380e1cf568ab579507ef07.tar.gz external_mesa3d-039d1e6f11c69dfe5d380e1cf568ab579507ef07.tar.bz2 |
radeonsi: fix 64-bit loads from LDS
Fixes spec/arb_tessellation_shader/execution/dvec[23]-vs-tcs-tes, among
others.
Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit 4a2dbfff05f7be271c2aa72e783e24b31906db51)
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 6a42a8f..0ee760f 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -911,7 +911,7 @@ static LLVMValueRef lds_load(struct lp_build_tgsi_context *bld_base, if (tgsi_type_is_64bit(type)) { LLVMValueRef value2; dw_addr = lp_build_add(&bld_base->uint_bld, dw_addr, - lp_build_const_int32(gallivm, swizzle + 1)); + lp_build_const_int32(gallivm, 1)); value2 = build_indexed_load(ctx, ctx->lds, dw_addr, false); return si_llvm_emit_fetch_64bit(bld_base, type, value, value2); } |