summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/kepler_compute.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-27 06:18:46 +0200
committerGitHub <noreply@github.com>2020-04-27 06:18:46 +0200
commit6c7d8073be9ab0ce92d346742989800895beeffe (patch)
tree298da9383d7f883102643f0ab146dda72d9f5358 /src/video_core/engines/kepler_compute.cpp
parentMerge pull request #3795 from vitor-k/fix-folder (diff)
parentClang Format. (diff)
downloadyuzu-6c7d8073be9ab0ce92d346742989800895beeffe.tar
yuzu-6c7d8073be9ab0ce92d346742989800895beeffe.tar.gz
yuzu-6c7d8073be9ab0ce92d346742989800895beeffe.tar.bz2
yuzu-6c7d8073be9ab0ce92d346742989800895beeffe.tar.lz
yuzu-6c7d8073be9ab0ce92d346742989800895beeffe.tar.xz
yuzu-6c7d8073be9ab0ce92d346742989800895beeffe.tar.zst
yuzu-6c7d8073be9ab0ce92d346742989800895beeffe.zip
Diffstat (limited to 'src/video_core/engines/kepler_compute.cpp')
-rw-r--r--src/video_core/engines/kepler_compute.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/engines/kepler_compute.cpp b/src/video_core/engines/kepler_compute.cpp
index 368c75a66..00a12175f 100644
--- a/src/video_core/engines/kepler_compute.cpp
+++ b/src/video_core/engines/kepler_compute.cpp
@@ -51,6 +51,13 @@ void KeplerCompute::CallMethod(const GPU::MethodCall& method_call) {
}
}
+void KeplerCompute::CallMultiMethod(u32 method, const u32* base_start, u32 amount,
+ u32 methods_pending) {
+ for (std::size_t i = 0; i < amount; i++) {
+ CallMethod({method, base_start[i], 0, methods_pending - static_cast<u32>(i)});
+ }
+}
+
Texture::FullTextureInfo KeplerCompute::GetTexture(std::size_t offset) const {
const std::bitset<8> cbuf_mask = launch_description.const_buffer_enable_mask.Value();
ASSERT(cbuf_mask[regs.tex_cb_index]);