[PATCH 07/10] d3d8: Introduce a helper to convert d3d8 device types to wined3d types.