Revert "Decoupling the memory with Gfx selection by Juansheng"

This reverts commit 5eea4748ec81e21ba40ca6e6ddbfeb54aba391aa.