[PATCH 2/6] d3d10core/tests: Introduce helper function to set viewport.