d3d12: prevent copying past end of source
It seems the state-tracker happily tries to copy outside the source-texure like this, so let's detect it and clamp the region.
Ideally, this should be solved in the state-tracker instead in the long run, but this prevents a crash in the CTS, so...