summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-01-29 01:33:26 +0100
committerGitHub <noreply@github.com>2019-01-29 01:33:26 +0100
commit8dbb8edcd3bc743d8da481e2c382a2e5e864cadd (patch)
tree242bffefbc2bb7c8008cb4096d3d6e2b35e76f2b
parentMerge pull request #2065 from lioncash/pm (diff)
parentshader/shader_ir: Amend three comment typos (diff)
downloadyuzu-8dbb8edcd3bc743d8da481e2c382a2e5e864cadd.tar
yuzu-8dbb8edcd3bc743d8da481e2c382a2e5e864cadd.tar.gz
yuzu-8dbb8edcd3bc743d8da481e2c382a2e5e864cadd.tar.bz2
yuzu-8dbb8edcd3bc743d8da481e2c382a2e5e864cadd.tar.lz
yuzu-8dbb8edcd3bc743d8da481e2c382a2e5e864cadd.tar.xz
yuzu-8dbb8edcd3bc743d8da481e2c382a2e5e864cadd.tar.zst
yuzu-8dbb8edcd3bc743d8da481e2c382a2e5e864cadd.zip
-rw-r--r--src/video_core/shader/decode.cpp2
-rw-r--r--src/video_core/shader/shader_ir.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/shader/decode.cpp b/src/video_core/shader/decode.cpp
index 6fdcac784..812983a99 100644
--- a/src/video_core/shader/decode.cpp
+++ b/src/video_core/shader/decode.cpp
@@ -126,7 +126,7 @@ BasicBlock ShaderIR::DecodeRange(u32 begin, u32 end) {
for (u32 pc = begin; pc < (begin > end ? MAX_PROGRAM_LENGTH : end);) {
pc = DecodeInstr(basic_block, pc);
}
- return std::move(basic_block);
+ return basic_block;
}
u32 ShaderIR::DecodeInstr(BasicBlock& bb, u32 pc) {
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h
index 96e7df6b6..ef8f94480 100644
--- a/src/video_core/shader/shader_ir.h
+++ b/src/video_core/shader/shader_ir.h
@@ -391,7 +391,7 @@ private:
const InternalFlag flag;
};
-/// A predicate register, it can be negated without aditional nodes
+/// A predicate register, it can be negated without additional nodes
class PredicateNode final {
public:
explicit constexpr PredicateNode(Tegra::Shader::Pred index, bool negated)
@@ -415,11 +415,11 @@ class AbufNode final {
public:
explicit constexpr AbufNode(Tegra::Shader::Attribute::Index index, u32 element,
const Tegra::Shader::IpaMode& input_mode, Node buffer = {})
- : input_mode{input_mode}, index{index}, element{element}, buffer{buffer} {}
+ : input_mode{input_mode}, buffer{buffer}, index{index}, element{element} {}
explicit constexpr AbufNode(Tegra::Shader::Attribute::Index index, u32 element,
Node buffer = {})
- : input_mode{}, index{index}, element{element}, buffer{buffer} {}
+ : input_mode{}, buffer{buffer}, index{index}, element{element} {}
Tegra::Shader::IpaMode GetInputMode() const {
return input_mode;
@@ -626,10 +626,10 @@ private:
Node GetPredicate(u64 pred, bool negated = false);
/// Generates a predicate node for an immediate true or false value
Node GetPredicate(bool immediate);
- /// Generates a node representing an input atttribute. Keeps track of used attributes.
+ /// Generates a node representing an input attribute. Keeps track of used attributes.
Node GetInputAttribute(Tegra::Shader::Attribute::Index index, u64 element,
const Tegra::Shader::IpaMode& input_mode, Node buffer = {});
- /// Generates a node representing an output atttribute. Keeps track of used attributes.
+ /// Generates a node representing an output attribute. Keeps track of used attributes.
Node GetOutputAttribute(Tegra::Shader::Attribute::Index index, u64 element, Node buffer);
/// Generates a node representing an internal flag
Node GetInternalFlag(InternalFlag flag, bool negated = false);