wined3d: Add correct autogenmipmap support.