From ca3b2306d57ab3b0ec00c0aef3118232625012a4 Mon Sep 17 00:00:00 2001 From: GPUCode <47210458+GPUCode@users.noreply.github.com> Date: Sat, 20 Jan 2024 22:13:31 +0200 Subject: [PATCH] shader_unit: Intialize temporaries on shader invocation (#7366) --- src/video_core/pica/shader_unit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/video_core/pica/shader_unit.cpp b/src/video_core/pica/shader_unit.cpp index 5d81f857ab..cac3ecd4ad 100644 --- a/src/video_core/pica/shader_unit.cpp +++ b/src/video_core/pica/shader_unit.cpp @@ -9,7 +9,10 @@ namespace Pica { -ShaderUnit::ShaderUnit(GeometryEmitter* emitter) : emitter_ptr{emitter} {} +ShaderUnit::ShaderUnit(GeometryEmitter* emitter) : emitter_ptr{emitter} { + const Common::Vec4 temp_vec{f24::Zero(), f24::Zero(), f24::Zero(), f24::One()}; + temporary.fill(temp_vec); +} ShaderUnit::~ShaderUnit() = default;