I have spent the last 28 years of my life working in a cleanroom, doing R&D on computer chip manufacturing. I started as a new engineer after grad school and worked my way up the technical ladder and now lead an engineering department with 200+ engineers. So, I know exactly what you need if you want to work in chipmaking.
If you consider a company like, say, Intel, and you want to work on the computer chip side (as opposed to building the fabs or running the electrical and chemical delivery systems and so on), you have about 5 typical categories of technical focus areas.
The first is software. It can range from optimizing operating systems and firmware to run on your hardware, write applications, etc., etc. Get a CS degree with focus on software for this.
Second is computer architecture. Again, a CS or computer engineering degree will be the best for thjs.
Third is circuit design. Get a EE degree with a lot of focus on computer aided design, SPICE simulations, extraction, etc.
All of the above are out of fab jobs.
Now, we get into jobs that are more fab centric.
If you want to focus on the electrical characteristics of semiconductor devices, get a EE degree focusing on that. You can work on transistor design, testing, quality and reliability, etc. This can be in-fab or our of fab in a lab setting.
If you want to work on the actual manufacturing of chips, say in etching, dielectric or metal deposition, etc., you are best off with a materials science, chemical engineering, physics or chemistry degree. I have a EE PhD from University of Illinois, but I focused on compound semiconductor materials, so my thesis work was more materials science than hardcore EE. No matter which major you pick, try to get some materials, hivac, analytical techniques (spectroscopy, microscopy, etc) experience if possible.
Let me know if you have questions.