xbmc/xbmc — pull request #838 by a11599 (2012-04-01 16:12:26+00:00)
Title: [windows] Enable shader based HQ scalers for DXVA renderer

The patch enables pixel shader based scaling with DXVA rendering. This is practically a dusted down patch from CrystalP with an added GPU flush. The flush is required to prevent stuttering in ION (and possibly other cards). The impact on image quality depends on the GPU. Some do only bilinear even if they would have the ponies to do better; in those cases the quality improvement is very noticeable.

According to my tests, thanks to CrystalP's scaler speedup it can now do 1080p upscaling from any source up to 60 fps on the 40 shader Ati 3450 using 'optimized' scalers and tops out at ~45 fps using unoptimized ones. More powerful GPUs should do 60 fps even with unoptimized scalers easily.

By default, the DXVA renderer will default to DXVA scaling when scaling method is set to "Automatic", but this can be changed in advancedsettings: true. Then "Automatic" will default to Lanczos3 (optimized) in all cases when it would do the same in PS renderer.