From 8ea9aea84c79a817960a4ca6fe2ff3eca0f36cd1 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 18 Jun 2016 08:16:49 -0500 Subject: [PATCH] Actually there's yet one more argument to VdInitializeScalerCommandBuffer. --- src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc index f12f24960..b883dc577 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc @@ -252,18 +252,18 @@ dword_result_t VdInitializeScalerCommandBuffer( dword_t horizontal_filter_type, // 7? pointer_t horizontal_filter_params, // lpvoid_t unk9, // - lpvoid_t dest_ptr // Points to the first 80000000h where the memcpy - // sources from. + lpvoid_t dest_ptr, // Points to the first 80000000h where the memcpy + // sources from. + dword_t dest_count // Count in words. ) { // We could fake the commands here, but I'm not sure the game checks for // anything but success (non-zero ret). // For now, we just fill it with NOPs. - uint32_t total_words = 200; auto dest = dest_ptr.as_array(); - for (size_t i = 0; i < total_words; ++i) { + for (size_t i = 0; i < dest_count; ++i) { dest[i] = 0x80000000; } - return total_words; + return (uint32_t)dest_count; } DECLARE_XBOXKRNL_EXPORT(VdInitializeScalerCommandBuffer, ExportTag::kVideo | ExportTag::kSketchy);