xbmc/xbmc — pull request #752 by Voyager-xbmc (2012-03-04 14:09:42+00:00)
Title: Fix deinterlacing occurring when renderer really just wants progressive ...

...outputFix deinterlacing occurring when renderer really just wants progressive output

This is an attempt at fixing http://trac.xbmc.org/ticket/12726

The problem: DXVA deinterlacing happens all the time when deinterlace mode is Auto. Even if the rendermanager correctly decides to output "progressively", DXVA processor still goes for Bob. This can cause bad presentation performance on some GPUs (ticket reported AMD E350 / Radeon).

The solution: correctly interpret Auto as either ON or OFF, based on what the RenderManager is driving.
The logic is that if the RenderManager is outputting "PresentSingle", the deinterlace mode should be considered "OFF" while in any other case it should be considered "ON".

This immediately helps with the fact that at the DXVA processor level we don't really know what "auto" means for the deinterlace mode. Since the rendermanager knows, we just ask the rendermanager.