aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2014-12-30 00:13:48 +0100
committerTony Wasserka <neobrainx@gmail.com>2014-12-30 00:13:48 +0100
commitb7e0b16354bc31521785247d7da3ad84f3829ea8 (patch)
tree9ed2e151b59536187946efb3fe34b51507b19c56 /src/video_core/vertex_shader.cpp
parent2d2aa2c0beae1bc7913e043444dadfab509afa8c (diff)
parent8369ee58035ca98f776428f6cccbcf987fee3bc9 (diff)
Merge pull request #351 from yuriks/optimize
Rasterizer Optimizations
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
-rw-r--r--src/video_core/vertex_shader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index e31bc3bc7..bed5081a0 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -469,6 +469,10 @@ OutputVertex RunShader(const InputVertex& input, int num_attributes)
// Setup output register table
OutputVertex ret;
+ // Zero output so that attributes which aren't output won't have denormals in them, which will
+ // slow us down later.
+ memset(&ret, 0, sizeof(ret));
+
for (int i = 0; i < 7; ++i) {
const auto& output_register_map = registers.vs_output_attributes[i];