summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-07-15 05:56:24 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-15 05:56:24 +0200
commit8943f2158d0e8a9f708612f1b0ea7051a6b0ddff (patch)
tree6f439e1ddde075330dc369bf9716a14c8a758907 /src/core/hle/service/nvdrv
parentnvhost_nvdec_common: Fix {Slice/Write}Vectors return (diff)
downloadyuzu-8943f2158d0e8a9f708612f1b0ea7051a6b0ddff.tar
yuzu-8943f2158d0e8a9f708612f1b0ea7051a6b0ddff.tar.gz
yuzu-8943f2158d0e8a9f708612f1b0ea7051a6b0ddff.tar.bz2
yuzu-8943f2158d0e8a9f708612f1b0ea7051a6b0ddff.tar.lz
yuzu-8943f2158d0e8a9f708612f1b0ea7051a6b0ddff.tar.xz
yuzu-8943f2158d0e8a9f708612f1b0ea7051a6b0ddff.tar.zst
yuzu-8943f2158d0e8a9f708612f1b0ea7051a6b0ddff.zip
Diffstat (limited to 'src/core/hle/service/nvdrv')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp10
1 files changed, 2 insertions, 8 deletions
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 f045008eb..1403a39d0 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
@@ -93,15 +93,9 @@ NvResult nvhost_nvdec_common::Submit(const std::vector<u8>& input, std::vector<u
for (const auto& cmd_buffer : command_buffers) {
const auto object = nvmap_dev->GetObject(cmd_buffer.memory_id);
ASSERT_OR_EXECUTE(object, return NvResult::InvalidState;);
- const auto map = FindBufferMap(object->dma_map_addr);
- if (!map) {
- LOG_ERROR(Service_NVDRV, "Tried to submit an invalid offset 0x{:X} dma 0x{:X}",
- object->addr, object->dma_map_addr);
- return NvResult::Success;
- }
Tegra::ChCommandHeaderList cmdlist(cmd_buffer.word_count);
- gpu.MemoryManager().ReadBlock(map->StartAddr() + cmd_buffer.offset, cmdlist.data(),
- cmdlist.size() * sizeof(u32));
+ system.Memory().ReadBlock(object->addr + cmd_buffer.offset, cmdlist.data(),
+ cmdlist.size() * sizeof(u32));
gpu.PushCommandBuffer(cmdlist);
}
if (gpu.UseNvdec()) {