diff options
author | Samuel Pitoiset <[email protected]> | 2018-02-02 18:56:39 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-02-05 11:05:52 +0100 |
commit | a1d568c8302b0c775fda583beefbbe7725f13dec (patch) | |
tree | 13c993da0650272aee607aa9048e7ba64e50b815 | |
parent | 8bb000f460ad8af7a916af1b12206b22616fce32 (diff) |
ac/nir: fix a crash in load_gs_input() on pre-GFX9 chips
Fixes: df1d5174fcc ("ac/nir: replace SI.buffer.load.dword with amdgcn.buffer.load")
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index cfcd2179094..fb29b6c46f0 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -3074,6 +3074,9 @@ load_gs_input(struct ac_shader_abi *abi, ctx->ac.i32_0, vtx_offset, soffset, 0, 1, 0, true, false); + + value[i] = LLVMBuildBitCast(ctx->builder, value[i], + type, ""); } } result = ac_build_varying_gather_values(&ctx->ac, value, num_components, component); |