16.10.1 WHQL driver works well on both of those.
I don't think it works with the RX 5xx series though as they came out after that driver version did.
You'll see lower stability than if you stick with "one generation":
For reference on the AMD side - HD 78xx/79xx and all R5/R7/R9 cards except the Fury line count as "one generation".
All Fury cards are the "one generation".
RX 4xx and 5xx count as "one generation".
The VEGA cards will probably count as "one generation" but only with themselves, they MIGHT count as part of the Fury generation but I doubt it.
Nvidia side, the only significant variation from the "First digit designates the generation (10xx counting 10 as a digit)" is that the GTX 750 ti is part of the 9xx (Maxwell) generation.
NVidia though doesn't seem to be quite as picky about being stable between 2 "close" generations as AMD is though, probably because they have the time and money to do a better job overall on their drivers and seem to TEST them on further-back card generations than AMD appears to do.