summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-02 23:31:26 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-13 22:33:04 +0100
commit8e9f23f393763a6d76605206eeb20f6f8885d9a9 (patch)
tree35b28be3f345cd0223732b4803e13de40764d1dc /src/video_core/engines
parentgl_shader_decompiler: Decorate output attributes with XFB layout (diff)
downloadyuzu-8e9f23f393763a6d76605206eeb20f6f8885d9a9.tar
yuzu-8e9f23f393763a6d76605206eeb20f6f8885d9a9.tar.gz
yuzu-8e9f23f393763a6d76605206eeb20f6f8885d9a9.tar.bz2
yuzu-8e9f23f393763a6d76605206eeb20f6f8885d9a9.tar.lz
yuzu-8e9f23f393763a6d76605206eeb20f6f8885d9a9.tar.xz
yuzu-8e9f23f393763a6d76605206eeb20f6f8885d9a9.tar.zst
yuzu-8e9f23f393763a6d76605206eeb20f6f8885d9a9.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 8752a1cfb..ba9c76593 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -634,6 +634,11 @@ public:
u32 address_low;
s32 buffer_size;
s32 buffer_offset;
+
+ GPUVAddr Address() const {
+ return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) |
+ address_low);
+ }
};
static_assert(sizeof(TransformFeedbackBinding) == 32);
@@ -652,6 +657,10 @@ public:
return shader_config[index].enable != 0;
}
+ bool IsShaderConfigEnabled(Regs::ShaderProgram type) const {
+ return IsShaderConfigEnabled(static_cast<std::size_t>(type));
+ }
+
union {
struct {
INSERT_UNION_PADDING_WORDS(0x45);