[PATCH 09/10] d3d8: Introduce a helper to convert d3d8 render states to wined3d states.