Deprioritize VAAPI for Gallium and Nvidia drivers and work around RFI latency bug

This commit is contained in:
Cameron Gutman 2022-10-16 21:51:10 -05:00
commit 8465a27a97
3 changed files with 44 additions and 28 deletions

View file

@ -34,7 +34,7 @@ extern "C" {
class VAAPIRenderer : public IFFmpegRenderer
{
public:
VAAPIRenderer();
VAAPIRenderer(int decoderSelectionPass);
virtual ~VAAPIRenderer() override;
virtual bool initialize(PDECODER_PARAMETERS params) override;
virtual bool prepareDecoderContext(AVCodecContext* context, AVDictionary** options) override;
@ -67,9 +67,11 @@ private:
bool canExportSurfaceHandle(int layerTypeFlag);
#endif
int m_DecoderSelectionPass;
int m_WindowSystem;
AVBufferRef* m_HwContext;
bool m_BlacklistedForDirectRendering;
bool m_HasRfiLatencyBug;
SDL_mutex* m_OverlayMutex;
VAImageFormat m_OverlayFormat;