[PATCH 9/9] d3d9: Introduce helpers to convert between d3d9 and wined3d query types.