summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.cpp
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2018-11-06 19:15:44 +0100
committerMarkus Wick <markus@selfnet.de>2018-11-06 22:31:33 +0100
commit359db6a673b1fa13c80e6b8bf54d5c29bc3b25db (patch)
treeade5874bcf54c42c7afaf8ab47d5cbd33e8a440a /src/video_core/engines/maxwell_3d.cpp
parentgl_rasterizer: Split VAO and VB setup functions. (diff)
downloadyuzu-359db6a673b1fa13c80e6b8bf54d5c29bc3b25db.tar
yuzu-359db6a673b1fa13c80e6b8bf54d5c29bc3b25db.tar.gz
yuzu-359db6a673b1fa13c80e6b8bf54d5c29bc3b25db.tar.bz2
yuzu-359db6a673b1fa13c80e6b8bf54d5c29bc3b25db.tar.lz
yuzu-359db6a673b1fa13c80e6b8bf54d5c29bc3b25db.tar.xz
yuzu-359db6a673b1fa13c80e6b8bf54d5c29bc3b25db.tar.zst
yuzu-359db6a673b1fa13c80e6b8bf54d5c29bc3b25db.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index d79c50919..41e554998 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -92,8 +92,16 @@ void Maxwell3D::WriteReg(u32 method, u32 value, u32 remaining_params) {
debug_context->OnEvent(Tegra::DebugContext::Event::MaxwellCommandLoaded, nullptr);
}
+ u32 old = regs.reg_array[method];
regs.reg_array[method] = value;
+ if (value != old) {
+ if (method >= MAXWELL3D_REG_INDEX(vertex_attrib_format) &&
+ method < MAXWELL3D_REG_INDEX(vertex_attrib_format) + regs.vertex_attrib_format.size()) {
+ dirty_flags.vertex_attrib_format = true;
+ }
+ }
+
switch (method) {
case MAXWELL3D_REG_INDEX(macros.data): {
ProcessMacroUpload(value);