mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 08:15:37 +00:00
Use 32 pixel alignment for HEVC to fix Intel green line issue
This commit is contained in:
parent
8687448966
commit
21aad643f3
@ -671,9 +671,13 @@ bool DXVA2Renderer::initialize(SDL_Window* window, int videoFormat, int width, i
|
|||||||
|
|
||||||
int alignment;
|
int alignment;
|
||||||
|
|
||||||
// HEVC using DXVA requires 128B alignment
|
// HEVC using DXVA requires 128 pixel alignment, however Intel GPUs decoding HEVC
|
||||||
|
// using StretchRect() to render draw a translucent green line at the top of
|
||||||
|
// the screen in full-screen mode at 720p/1080p unless we use 32 pixel alignment.
|
||||||
|
// This appears to work without issues on AMD and Nvidia GPUs too, so we will
|
||||||
|
// do it unconditionally for now.
|
||||||
if (m_VideoFormat & VIDEO_FORMAT_MASK_H265) {
|
if (m_VideoFormat & VIDEO_FORMAT_MASK_H265) {
|
||||||
alignment = 128;
|
alignment = 32;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
alignment = 16;
|
alignment = 16;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user