You may have already thought about this, but this comes to mind as one path:
Instead of a complete copy, have a switch --select-driver=[r600/r800] to pick which to build. This way you can share everything except the generation-specific paths.
And no ifdef's around the code itself..
Instead of a complete copy, have a switch --select-driver=[r600/r800] to pick which to build. This way you can share everything except the generation-specific paths.
#ifdef r600
#include "r600_registers.h"
#elif r800
#include "r800_registers.h"
#endif
#include "r600_registers.h"
#elif r800
#include "r800_registers.h"
#endif
Comment