From 8c171a6489c6793958c7900df3ad1cd2942269e4 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 1 Nov 2014 11:40:07 -0700 Subject: [PATCH] VdEnableDisableClockGating stub. --- src/xenia/kernel/xboxkrnl_video.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/xenia/kernel/xboxkrnl_video.cc b/src/xenia/kernel/xboxkrnl_video.cc index c3a7e5a6f..727277513 100644 --- a/src/xenia/kernel/xboxkrnl_video.cc +++ b/src/xenia/kernel/xboxkrnl_video.cc @@ -135,6 +135,17 @@ SHIM_CALL VdShutdownEngines_shim(PPCContext* ppc_state, KernelState* state) { // re-initialize. } +SHIM_CALL VdEnableDisableClockGating_shim(PPCContext* ppc_state, + KernelState* state) { + uint32_t enabled = SHIM_GET_ARG_32(0); + + XELOGD("VdEnableDisableClockGating(%d)", enabled); + + // Ignored, as it really doesn't matter. + + SHIM_SET_RETURN_64(0); +} + SHIM_CALL VdSetGraphicsInterruptCallback_shim(PPCContext* ppc_state, KernelState* state) { uint32_t callback = SHIM_GET_ARG_32(0); @@ -368,6 +379,7 @@ void xe::kernel::xboxkrnl::RegisterVideoExports(ExportResolver* export_resolver, SHIM_SET_MAPPING("xboxkrnl.exe", VdQueryVideoMode, state); SHIM_SET_MAPPING("xboxkrnl.exe", VdInitializeEngines, state); SHIM_SET_MAPPING("xboxkrnl.exe", VdShutdownEngines, state); + SHIM_SET_MAPPING("xboxkrnl.exe", VdEnableDisableClockGating, state); SHIM_SET_MAPPING("xboxkrnl.exe", VdSetGraphicsInterruptCallback, state); SHIM_SET_MAPPING("xboxkrnl.exe", VdInitializeRingBuffer, state); SHIM_SET_MAPPING("xboxkrnl.exe", VdEnableRingBufferRPtrWriteBack, state);