Commit: b9d6271916b6a67a6acf8e3f965e0da94cedabad
Author: Jeroen Bakker
Date:   Fri Dec 17 08:16:06 2021 +0100
Branches: master
https://developer.blender.org/rBb9d6271916b6a67a6acf8e3f965e0da94cedabad

GPU: Sort SSBOs In Shader Interface.

SSBOs weren't sorted, but other types were. This was an
oversight when SSBOs were introduced (GPU compute pipeline).

Issue identified by @fclem.

===================================================================

M       source/blender/gpu/intern/gpu_shader_interface.cc

===================================================================

diff --git a/source/blender/gpu/intern/gpu_shader_interface.cc 
b/source/blender/gpu/intern/gpu_shader_interface.cc
index 1648446d21b..937f49ccaec 100644
--- a/source/blender/gpu/intern/gpu_shader_interface.cc
+++ b/source/blender/gpu/intern/gpu_shader_interface.cc
@@ -74,6 +74,8 @@ void ShaderInterface::sort_inputs()
   sort_input_list(MutableSpan<ShaderInput>(inputs_, attr_len_));
   sort_input_list(MutableSpan<ShaderInput>(inputs_ + attr_len_, ubo_len_));
   sort_input_list(MutableSpan<ShaderInput>(inputs_ + attr_len_ + ubo_len_, 
uniform_len_));
+  sort_input_list(
+      MutableSpan<ShaderInput>(inputs_ + attr_len_ + ubo_len_ + uniform_len_, 
ssbo_len_));
 }
 
 void ShaderInterface::debug_print()

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to