mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radeonsi: don't set the last parameter component of llvm.AMDGPU.cube
LLVM doesn't use it. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
42c5f839ad
commit
c88b309fd5
1 changed files with 8 additions and 2 deletions
|
|
@ -902,7 +902,7 @@ static void kil_emit(const struct lp_build_tgsi_action *action,
|
|||
}
|
||||
|
||||
static LLVMValueRef build_cube_intrinsic(struct gallivm_state *gallivm,
|
||||
LLVMValueRef in[4])
|
||||
LLVMValueRef in[3])
|
||||
{
|
||||
if (HAVE_LLVM >= 0x0309) {
|
||||
LLVMTypeRef f32 = LLVMTypeOf(in[0]);
|
||||
|
|
@ -919,7 +919,13 @@ static LLVMValueRef build_cube_intrinsic(struct gallivm_state *gallivm,
|
|||
|
||||
return lp_build_gather_values(gallivm, out, 4);
|
||||
} else {
|
||||
LLVMValueRef vec = lp_build_gather_values(gallivm, in, 4);
|
||||
LLVMValueRef c[4] = {
|
||||
in[0],
|
||||
in[1],
|
||||
in[2],
|
||||
LLVMGetUndef(LLVMTypeOf(in[0]))
|
||||
};
|
||||
LLVMValueRef vec = lp_build_gather_values(gallivm, c, 4);
|
||||
|
||||
return lp_build_intrinsic(gallivm->builder, "llvm.AMDGPU.cube",
|
||||
LLVMTypeOf(vec), &vec, 1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue