From 2dbef58eeb1d055ac625688cbf0a35e3b839b8e0 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 24 Oct 2021 00:01:35 +0100 Subject: Fixup channel submit IOCTL syncpoint parameters The current arguments worked by happenstance as games only ever submit one syncpoint and request one fence back, if a game were to do something other than this then the arguments would've been parsed entirely wrong. --- .../hle/service/nvdrv/devices/nvhost_nvdec_common.cpp | 17 ++++------------- .../hle/service/nvdrv/devices/nvhost_nvdec_common.h | 13 +++++-------- 2 files changed, 9 insertions(+), 21 deletions(-) (limited to 'src/core/hle') diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp index 845de724d..e61261f98 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp @@ -69,8 +69,7 @@ NvResult nvhost_nvdec_common::Submit(const std::vector& input, std::vector relocs(params.relocation_count); std::vector reloc_shifts(params.relocation_count); std::vector syncpt_increments(params.syncpoint_count); - std::vector wait_checks(params.syncpoint_count); - std::vector fences(params.fence_count); + std::vector fence_thresholds(params.fence_count); // Slice input into their respective buffers std::size_t offset = sizeof(IoctlSubmit); @@ -78,15 +77,13 @@ NvResult nvhost_nvdec_common::Submit(const std::vector& input, std::vector& input, std::vector& input, std::vector