How to make iGPU and dGPU (HD 530 and RX 470) work together on High Sierra 10.13.4?

Here's my specs:

-Gigabyte GA-B150M-DS3H

-i5 6400

-Gigabyte RX 470

I've tried following [this guide](https://hackintosher.com/guides/fix-rendering-issues-fcpx-high-sierra/) but I end up with a black screen. The only way I have to make the system boot correctly is disabling the iGPU, but the ui is quite laggy, even if my dGPU is definitely enough powerful to make it run smooth, so I suspect that something is wrong here.

Any help is appreciated, thanks

Author: @M4mmt