summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_processor.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-12-17 23:38:03 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-01-26 03:53:25 +0100
commit6fa3687afc97685101f9ee5c65cf98f505980695 (patch)
treeeb8c3927526cff06dbf9676499ca2e9fc11eda02 /src/video_core/command_processor.cpp
parentShader: Initialize conditional_code in interpreter (diff)
downloadyuzu-6fa3687afc97685101f9ee5c65cf98f505980695.tar
yuzu-6fa3687afc97685101f9ee5c65cf98f505980695.tar.gz
yuzu-6fa3687afc97685101f9ee5c65cf98f505980695.tar.bz2
yuzu-6fa3687afc97685101f9ee5c65cf98f505980695.tar.lz
yuzu-6fa3687afc97685101f9ee5c65cf98f505980695.tar.xz
yuzu-6fa3687afc97685101f9ee5c65cf98f505980695.tar.zst
yuzu-6fa3687afc97685101f9ee5c65cf98f505980695.zip
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r--src/video_core/command_processor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 694c9f169..66d19cba0 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -152,8 +152,8 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
Shader::UnitState shader_unit;
shader_unit.LoadInputVertex(immediate_input, regs.vs.num_input_attributes + 1);
shader_engine->Run(shader_unit, regs.vs.main_offset);
- Shader::OutputVertex output_vertex =
- shader_unit.output_registers.ToVertex(regs.vs);
+ auto output_vertex = Shader::OutputVertex::FromRegisters(
+ shader_unit.registers.output, regs, regs.vs.output_mask);
// Send to renderer
using Pica::Shader::OutputVertex;
@@ -291,7 +291,8 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
shader_engine->Run(shader_unit, regs.vs.main_offset);
// Retrieve vertex from register data
- output_vertex = shader_unit.output_registers.ToVertex(regs.vs);
+ output_vertex = Shader::OutputVertex::FromRegisters(shader_unit.registers.output,
+ regs, regs.vs.output_mask);
if (is_indexed) {
vertex_cache[vertex_cache_pos] = output_vertex;