diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-27 21:47:49 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:33 +0200 |
commit | 3b595fe8b28001eed4a936e2a7b465bd67dcc4b7 (patch) | |
tree | f34a71f52313a5ea254eefb42a4d83eef2ccb52d /src | |
parent | glasm: Fix global memory fallbacks (diff) | |
download | yuzu-3b595fe8b28001eed4a936e2a7b465bd67dcc4b7.tar yuzu-3b595fe8b28001eed4a936e2a7b465bd67dcc4b7.tar.gz yuzu-3b595fe8b28001eed4a936e2a7b465bd67dcc4b7.tar.bz2 yuzu-3b595fe8b28001eed4a936e2a7b465bd67dcc4b7.tar.lz yuzu-3b595fe8b28001eed4a936e2a7b465bd67dcc4b7.tar.xz yuzu-3b595fe8b28001eed4a936e2a7b465bd67dcc4b7.tar.zst yuzu-3b595fe8b28001eed4a936e2a7b465bd67dcc4b7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_graphics_pipeline.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp b/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp index 19d85c482..38ec88b13 100644 --- a/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp +++ b/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp @@ -362,13 +362,11 @@ void GraphicsPipeline::GenerateTransformFeedbackState( const VideoCommon::TransformFeedbackState& xfb_state) { // TODO(Rodrigo): Inject SKIP_COMPONENTS*_NV when required. An unimplemented message will signal // when this is required. - const auto& regs{maxwell3d.regs}; - GLint* cursor{xfb_attribs.data()}; GLint* current_stream{xfb_streams.data()}; for (size_t feedback = 0; feedback < Maxwell::NumTransformFeedbackBuffers; ++feedback) { - const auto& layout = regs.tfb_layouts[feedback]; + const auto& layout = xfb_state.layouts[feedback]; UNIMPLEMENTED_IF_MSG(layout.stride != layout.varying_count * 4, "Stride padding"); if (layout.varying_count == 0) { continue; @@ -383,7 +381,7 @@ void GraphicsPipeline::GenerateTransformFeedbackState( } ++current_stream; - const auto& locations = regs.tfb_varying_locs[feedback]; + const auto& locations = xfb_state.varyings[feedback]; std::optional<u8> current_index; for (u32 offset = 0; offset < layout.varying_count; ++offset) { const u8 location = locations[offset]; |