[GPU] Unified clear_memory_page_state to be used in D3D12 & Vulkan

This commit is contained in:
Gliniak
2023-08-02 22:37:11 +02:00
committed by Radosław Gliński
parent 91f976e524
commit 2a4d7feaae
6 changed files with 35 additions and 15 deletions

View File

@@ -45,9 +45,22 @@ DEFINE_bool(
"of the guest thread that wrote the new read position.",
"GPU");
DEFINE_bool(clear_memory_page_state, false,
"Refresh state of memory pages to enable gpu written data. (Use "
"for 'Team Ninja' Games to fix missing character models)",
"GPU");
namespace xe {
namespace gpu {
void CommonSaveGPUSetting(CommonGPUSetting setting, uint64_t value) {
switch (setting) {
case CommonGPUSetting::ClearMemoryPageState:
OVERRIDE_bool(clear_memory_page_state, (bool)value);
break;
}
}
using namespace xe::gpu::xenos;
CommandProcessor::CommandProcessor(GraphicsSystem* graphics_system,