Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修改loongarch64集显渲染方式 #367

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions src/backends/mpv/mpv_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,13 @@ mpv_handle *MpvProxy::mpv_init()
my_set_property(pHandle, "video-sync", "desync");
}
if (!fi.exists() && !jmfi.exists() && !mtfi.exists()) {
my_set_property(pHandle, "vo", "gpu,x11");
m_sInitVo = "gpu,x11";
if(CompositingManager::get().property("directRendering").toBool()) {
my_set_property(pHandle, "vo", "gpu,x11");
m_sInitVo = "gpu,x11";
} else {
my_set_property(pHandle, "vo", "x11");
m_sInitVo = "x11";
}
}
#elif defined (__sw_64__)
//Synchronously modify the video output of the SW platform vdpau(powered by zhangfl)
Expand Down Expand Up @@ -506,8 +511,13 @@ mpv_handle *MpvProxy::mpv_init()
my_set_property(pHandle, "video-sync", "desync");
}
if (!fi.exists() && !jmfi.exists()) {
my_set_property(pHandle, "vo", "gpu,x11");
m_sInitVo = "gpu,x11";
if(CompositingManager::get().property("directRendering").toBool()) {
my_set_property(pHandle, "vo", "gpu,x11");
m_sInitVo = "gpu,x11";
} else {
my_set_property(pHandle, "vo", "x11");
m_sInitVo = "x11";
}
}
#endif
if (QFile::exists("/usr/local/ctyun/clink/Mirror/Registry/Default")) {
Expand Down
1 change: 1 addition & 0 deletions src/libdmr/compositing_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ CompositingManager::CompositingManager()
{
initMember();
bool isDriverLoaded = isDriverLoadedCorrectly();
setProperty("directRendering", isDriverLoaded); //是否支持直接渲染
softDecodeCheck(); //检测是否是kunpeng920(是否走软解码)

// bool isI915 = false;
Expand Down
Loading