wined3d: Introduce a WINED3DFMT_FLAG_GEN_MIPMAP flag.