interop_dxva2 does not handle visible VS physical width/height correctly
When the physical texture width/height is different from the visible_width/visible_height, the interop uploads the picture expanding to the whole texture instead of the visible region.
As a consequence, when the vout crops to the visible region, part of the image is lost:
This can be reproduced easily with this hack:
diff --git a/modules/video_output/opengl/gl_api.c b/modules/video_output/opengl/gl_api.c
index 92db2206f1..f15878efe6 100644
--- a/modules/video_output/opengl/gl_api.c
+++ b/modules/video_output/opengl/gl_api.c
@@ -191,5 +191,7 @@ vlc_gl_api_Init(struct vlc_gl_api *api, vlc_gl_t *gl)
vlc_gl_StrHasToken(api->extensions, "GL_APPLE_texture_2D_limited_npot");
}
+ api->supports_npot = false;
+
return VLC_SUCCESS;
}
Refs: !624 (comment 282179)