diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-06 09:03:13 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-13 22:33:05 +0100 |
commit | ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e (patch) | |
tree | f6de40b3d236977bf8ac0a73bbaa61133fdcaac2 | |
parent | vk_shader_decompiler: Use registry for specialization (diff) | |
download | yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.gz yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.bz2 yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.lz yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.xz yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.tar.zst yuzu-ae6189d7c2d5b5bf7daa4cc5a3ec34805cec7b7e.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 3 | ||||
-rw-r--r-- | src/video_core/shader/transform_feedback.cpp | 1 | ||||
-rw-r--r-- | src/video_core/shader/transform_feedback.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 021edf1f6..175145cc1 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -777,7 +777,8 @@ private: } const VaryingTFB& tfb = it->second; - return fmt::format("xfb_buffer = {}, xfb_offset = {}", tfb.buffer, tfb.offset); + return fmt::format("xfb_buffer = {}, xfb_offset = {}, xfb_stride = {}", tfb.buffer, + tfb.offset, tfb.stride); } void DeclareOutputAttribute(Attribute::Index index) { diff --git a/src/video_core/shader/transform_feedback.cpp b/src/video_core/shader/transform_feedback.cpp index db86c940f..22a933761 100644 --- a/src/video_core/shader/transform_feedback.cpp +++ b/src/video_core/shader/transform_feedback.cpp @@ -87,6 +87,7 @@ std::unordered_map<u8, VaryingTFB> BuildTransformFeedback(const GraphicsInfo& in VaryingTFB varying; varying.buffer = layout.stream; + varying.stride = layout.stride; varying.offset = offset * sizeof(u32); varying.components = 1; diff --git a/src/video_core/shader/transform_feedback.h b/src/video_core/shader/transform_feedback.h index 8a8235019..77d05f64c 100644 --- a/src/video_core/shader/transform_feedback.h +++ b/src/video_core/shader/transform_feedback.h @@ -13,6 +13,7 @@ namespace VideoCommon::Shader { struct VaryingTFB { std::size_t buffer; + std::size_t stride; std::size_t offset; std::size_t components; }; |