summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-05-01 21:54:15 +0200
committerSubv <subv2112@gmail.com>2018-05-01 21:54:15 +0200
commit0c8b7c00e8aa0749bdf4c689790ad7a2830cf760 (patch)
treeba61ca7d15d41ba99f2a7d9c87954fd8cd3712c0 /src/core/hle/service/nvdrv
parentMerge pull request #425 from lioncash/namespace (diff)
downloadyuzu-0c8b7c00e8aa0749bdf4c689790ad7a2830cf760.tar
yuzu-0c8b7c00e8aa0749bdf4c689790ad7a2830cf760.tar.gz
yuzu-0c8b7c00e8aa0749bdf4c689790ad7a2830cf760.tar.bz2
yuzu-0c8b7c00e8aa0749bdf4c689790ad7a2830cf760.tar.lz
yuzu-0c8b7c00e8aa0749bdf4c689790ad7a2830cf760.tar.xz
yuzu-0c8b7c00e8aa0749bdf4c689790ad7a2830cf760.tar.zst
yuzu-0c8b7c00e8aa0749bdf4c689790ad7a2830cf760.zip
Diffstat (limited to 'src/core/hle/service/nvdrv')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp2
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp3
2 files changed, 0 insertions, 5 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
index 36d7f837b..a7097bd23 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
@@ -39,7 +39,6 @@ u32 nvhost_as_gpu::InitalizeEx(const std::vector<u8>& input, std::vector<u8>& ou
IoctlInitalizeEx params{};
std::memcpy(&params, input.data(), input.size());
NGLOG_WARNING(Service_NVDRV, "(STUBBED) called, big_page_size={:#X}", params.big_page_size);
- std::memcpy(output.data(), &params, output.size());
return 0;
}
@@ -135,7 +134,6 @@ u32 nvhost_as_gpu::BindChannel(const std::vector<u8>& input, std::vector<u8>& ou
std::memcpy(&params, input.data(), input.size());
NGLOG_DEBUG(Service_NVDRV, "called, fd={:X}", params.fd);
channel = params.fd;
- std::memcpy(output.data(), &params, output.size());
return 0;
}
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
index 70625211e..9fee7d564 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
@@ -49,7 +49,6 @@ u32 nvhost_gpu::SetNVMAPfd(const std::vector<u8>& input, std::vector<u8>& output
std::memcpy(&params, input.data(), input.size());
NGLOG_DEBUG(Service_NVDRV, "called, fd={}", params.nvmap_fd);
nvmap_fd = params.nvmap_fd;
- std::memcpy(output.data(), &params, output.size());
return 0;
}
@@ -58,7 +57,6 @@ u32 nvhost_gpu::SetClientData(const std::vector<u8>& input, std::vector<u8>& out
IoctlClientData params{};
std::memcpy(&params, input.data(), input.size());
user_data = params.data;
- std::memcpy(output.data(), &params, output.size());
return 0;
}
@@ -91,7 +89,6 @@ u32 nvhost_gpu::SetErrorNotifier(const std::vector<u8>& input, std::vector<u8>&
u32 nvhost_gpu::SetChannelPriority(const std::vector<u8>& input, std::vector<u8>& output) {
std::memcpy(&channel_priority, input.data(), input.size());
NGLOG_DEBUG(Service_NVDRV, "(STUBBED) called, priority={:X}", channel_priority);
- std::memcpy(output.data(), &channel_priority, output.size());
return 0;
}