ac/nir: Use correct cast for readfirstlane and ptrs.
Fixes: 028ce527
"radv: Add non-uniform indexing lowering."
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
2301b2e029
commit
2af00b1fdd
|
@ -3840,6 +3840,8 @@ ac_build_readlane(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef la
|
|||
LLVMConstInt(ctx->i32, i, 0), "");
|
||||
}
|
||||
}
|
||||
if (LLVMGetTypeKind(src_type) == LLVMPointerTypeKind)
|
||||
return LLVMBuildIntToPtr(ctx->builder, ret, src_type, "");
|
||||
return LLVMBuildBitCast(ctx->builder, ret, src_type, "");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue