summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/decode.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-24 06:44:14 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-26 06:38:51 +0200
commitddd82ef42b7bb7bea4c80edeb96bca8512580df3 (patch)
treeb2b09f597fe519128d065f034d51103f478e6776 /src/video_core/shader/decode.cpp
parentMerge pull request #3768 from H27CK/cmd-title-fmt (diff)
downloadyuzu-ddd82ef42b7bb7bea4c80edeb96bca8512580df3.tar
yuzu-ddd82ef42b7bb7bea4c80edeb96bca8512580df3.tar.gz
yuzu-ddd82ef42b7bb7bea4c80edeb96bca8512580df3.tar.bz2
yuzu-ddd82ef42b7bb7bea4c80edeb96bca8512580df3.tar.lz
yuzu-ddd82ef42b7bb7bea4c80edeb96bca8512580df3.tar.xz
yuzu-ddd82ef42b7bb7bea4c80edeb96bca8512580df3.tar.zst
yuzu-ddd82ef42b7bb7bea4c80edeb96bca8512580df3.zip
Diffstat (limited to 'src/video_core/shader/decode.cpp')
-rw-r--r--src/video_core/shader/decode.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/video_core/shader/decode.cpp b/src/video_core/shader/decode.cpp
index 87ac9ac6c..1167ff4ec 100644
--- a/src/video_core/shader/decode.cpp
+++ b/src/video_core/shader/decode.cpp
@@ -13,6 +13,7 @@
#include "video_core/engines/shader_bytecode.h"
#include "video_core/engines/shader_header.h"
#include "video_core/shader/control_flow.h"
+#include "video_core/shader/memory_util.h"
#include "video_core/shader/node_helper.h"
#include "video_core/shader/shader_ir.h"
@@ -23,17 +24,6 @@ using Tegra::Shader::OpCode;
namespace {
-/**
- * Returns whether the instruction at the specified offset is a 'sched' instruction.
- * Sched instructions always appear before a sequence of 3 instructions.
- */
-constexpr bool IsSchedInstruction(u32 offset, u32 main_offset) {
- constexpr u32 SchedPeriod = 4;
- u32 absolute_offset = offset - main_offset;
-
- return (absolute_offset % SchedPeriod) == 0;
-}
-
void DeduceTextureHandlerSize(VideoCore::GuestDriverProfile& gpu_driver,
const std::list<Sampler>& used_samplers) {
if (gpu_driver.IsTextureHandlerSizeKnown() || used_samplers.size() <= 1) {