提交 15fdaf63 编写于 作者: V vit9696

OpenCoreUefiInOut: Removed `DirectGopCacheMode` due to being ineffective

上级 86a49fb2
......@@ -24,6 +24,7 @@ OpenCore Changelog
- Fixed CPU detection crash with QEMU 5.0 and KVM accelerator
- Removed `RequestBootVarFallback` due to numerous bugs
- Added `DeduplicateBootOrder` UEFI quirk
- Removed `DirectGopCacheMode` due to being ineffective
#### v0.5.8
- Fixed invalid CPU object reference in SSDT-PLUG
......
......@@ -4849,21 +4849,6 @@ functioning. Feature highlights:
\emph{Note}: This option only applies to \texttt{System} renderer.
\item
\texttt{DirectGopCacheMode}\\
\textbf{Type}: \texttt{plist\ string}\\
\textbf{Failsafe}: Empty string\\
\textbf{Description}: Cache mode for builtin graphics output protocol framebuffer.
Tuning cache mode may provide better rendering performance on some firmwares.
Providing empty string leaves cache control settings to the firmware.
Valid non-empty values are: \texttt{Uncacheable}, \texttt{WriteCombining}, and
\texttt{WriteThrough}.
\emph{Note}: This option is not supported on most hardware (see
\href{https://github.com/acidanthera/bugtracker/issues/755}{acidanthera/bugtracker\#755}
for more details).
\item
\texttt{DirectGopRendering}\\
\textbf{Type}: \texttt{plist\ boolean}\\
......
......@@ -860,8 +860,6 @@
<false/>
<key>ConsoleMode</key>
<string></string>
<key>DirectGopCacheMode</key>
<string></string>
<key>DirectGopRendering</key>
<false/>
<key>IgnoreTextInGraphics</key>
......
......@@ -963,8 +963,6 @@
<false/>
<key>ConsoleMode</key>
<string></string>
<key>DirectGopCacheMode</key>
<string></string>
<key>DirectGopRendering</key>
<false/>
<key>IgnoreTextInGraphics</key>
......
......@@ -517,7 +517,6 @@ typedef enum {
_(OC_STRING , ConsoleMode , , OC_STRING_CONSTR ("", _, __), OC_DESTR (OC_STRING)) \
_(OC_STRING , Resolution , , OC_STRING_CONSTR ("", _, __), OC_DESTR (OC_STRING)) \
_(OC_STRING , TextRenderer , , OC_STRING_CONSTR ("", _, __), OC_DESTR (OC_STRING)) \
_(OC_STRING , DirectGopCacheMode , , OC_STRING_CONSTR ("", _, __), OC_DESTR (OC_STRING)) \
_(BOOLEAN , IgnoreTextInGraphics , , FALSE , ()) \
_(BOOLEAN , ClearScreenOnModeSwitch , , FALSE , ()) \
_(BOOLEAN , ProvideConsoleGop , , FALSE , ()) \
......
......@@ -601,7 +601,6 @@ OC_SCHEMA
mUefiOutputSchema[] = {
OC_SCHEMA_BOOLEAN_IN ("ClearScreenOnModeSwitch",OC_GLOBAL_CONFIG, Uefi.Output.ClearScreenOnModeSwitch),
OC_SCHEMA_STRING_IN ("ConsoleMode", OC_GLOBAL_CONFIG, Uefi.Output.ConsoleMode),
OC_SCHEMA_STRING_IN ("DirectGopCacheMode", OC_GLOBAL_CONFIG, Uefi.Output.DirectGopCacheMode),
OC_SCHEMA_BOOLEAN_IN ("DirectGopRendering", OC_GLOBAL_CONFIG, Uefi.Output.DirectGopRendering),
OC_SCHEMA_BOOLEAN_IN ("IgnoreTextInGraphics", OC_GLOBAL_CONFIG, Uefi.Output.IgnoreTextInGraphics),
OC_SCHEMA_BOOLEAN_IN ("ProvideConsoleGop", OC_GLOBAL_CONFIG, Uefi.Output.ProvideConsoleGop),
......
......@@ -191,7 +191,6 @@ OcLoadUefiOutputSupport (
{
EFI_STATUS Status;
CONST CHAR8 *AsciiRenderer;
CONST CHAR8 *AsciiCacheMode;
OC_CONSOLE_RENDERER Renderer;
UINT32 Width;
UINT32 Height;
......@@ -241,20 +240,7 @@ OcLoadUefiOutputSupport (
}
if (Config->Uefi.Output.DirectGopRendering) {
AsciiCacheMode = OC_BLOB_GET (&Config->Uefi.Output.DirectGopCacheMode);
if (AsciiCacheMode[0] == '\0') {
OcUseDirectGop (-1);
} else if (AsciiStrCmp (AsciiCacheMode, "Uncacheable") == 0) {
OcUseDirectGop (CacheUncacheable);
} else if (AsciiStrCmp (AsciiCacheMode, "WriteCombining") == 0) {
OcUseDirectGop (CacheWriteCombining);
} else if (AsciiStrCmp (AsciiCacheMode, "WriteThrough") == 0) {
OcUseDirectGop (CacheWriteThrough);
} else {
DEBUG ((DEBUG_WARN, "OC: Requested unknown cache mode %a\n", AsciiCacheMode));
OcUseDirectGop (-1);
}
OcUseDirectGop (-1);
}
if (Config->Uefi.Output.ReconnectOnResChange && !EFI_ERROR (Status)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册