mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
ac/nir: fix a crash in load_gs_input() on pre-GFX9 chips
Fixes: df1d5174fc ("ac/nir: replace SI.buffer.load.dword with amdgcn.buffer.load")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
8bb000f460
commit
a1d568c830
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue