[PATCH 05/10] ddraw: Introduce a helper to convert ddraw stateblock types to wined3d types.