mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Export composed VA surface layers for EGL import if supported
Importing composed formats is more efficient and performant because it allows tiled and/or compressed surfaces to be directly sampled by shaders without requiring a conversion to a linear planar format first.
This commit is contained in:
@@ -69,7 +69,7 @@ private:
|
||||
void renderOverlay(VADisplay display, VASurfaceID surface, Overlay::OverlayType type);
|
||||
|
||||
#if defined(HAVE_EGL) || defined(HAVE_DRM)
|
||||
bool canExportSurfaceHandle(int layerTypeFlag);
|
||||
bool canExportSurfaceHandle(int layerTypeFlag, VADRMPRIMESurfaceDescriptor* descriptor);
|
||||
#endif
|
||||
|
||||
int m_DecoderSelectionPass;
|
||||
@@ -96,6 +96,11 @@ private:
|
||||
int m_DisplayHeight;
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
enum class EglExportType {
|
||||
Unknown,
|
||||
Separate,
|
||||
Composed
|
||||
} m_EglExportType;
|
||||
VADRMPRIMESurfaceDescriptor m_PrimeDescriptor;
|
||||
EglImageFactory m_EglImageFactory;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user