diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-10-13 02:33:27 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-10-13 09:08:33 +0200 |
commit | e4e0abc418de022903a084c9409cd502ce6c5629 (patch) | |
tree | ec6e261a875e7c31d2f77727ed173179ef0e40e0 /src/video_core/renderer_vulkan/fixed_pipeline_state.cpp | |
parent | Merge pull request #4766 from ReinUsesLisp/tmml-cube (diff) | |
download | yuzu-e4e0abc418de022903a084c9409cd502ce6c5629.tar yuzu-e4e0abc418de022903a084c9409cd502ce6c5629.tar.gz yuzu-e4e0abc418de022903a084c9409cd502ce6c5629.tar.bz2 yuzu-e4e0abc418de022903a084c9409cd502ce6c5629.tar.lz yuzu-e4e0abc418de022903a084c9409cd502ce6c5629.tar.xz yuzu-e4e0abc418de022903a084c9409cd502ce6c5629.tar.zst yuzu-e4e0abc418de022903a084c9409cd502ce6c5629.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/fixed_pipeline_state.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/fixed_pipeline_state.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp index 81a39a3b8..da5c550ea 100644 --- a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp +++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp @@ -58,6 +58,7 @@ void FixedPipelineState::Fill(const Maxwell& regs, bool has_extended_dynamic_sta logic_op_enable.Assign(regs.logic_op.enable != 0 ? 1 : 0); logic_op.Assign(PackLogicOp(regs.logic_op.operation)); rasterize_enable.Assign(regs.rasterize_enable != 0 ? 1 : 0); + topology.Assign(regs.draw.topology); std::memcpy(&point_size, ®s.point_size, sizeof(point_size)); // TODO: C++20 std::bit_cast @@ -131,7 +132,6 @@ void FixedPipelineState::BlendingAttachment::Fill(const Maxwell& regs, std::size } void FixedPipelineState::DynamicState::Fill(const Maxwell& regs) { - const u32 topology_index = static_cast<u32>(regs.draw.topology.Value()); u32 packed_front_face = PackFrontFace(regs.front_face); if (regs.screen_y_control.triangle_rast_flip != 0) { // Flip front face @@ -161,7 +161,6 @@ void FixedPipelineState::DynamicState::Fill(const Maxwell& regs) { depth_test_enable.Assign(regs.depth_test_enable); front_face.Assign(packed_front_face); depth_test_func.Assign(PackComparisonOp(regs.depth_test_func)); - topology.Assign(topology_index); cull_face.Assign(PackCullFace(regs.cull_face)); cull_enable.Assign(regs.cull_test_enabled != 0 ? 1 : 0); |