Skip to content

Commit

Permalink
Don't print batched groupdata sizes
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Hellmuth <chellmuth@gmail.com>
  • Loading branch information
chellmuth authored and lgritz committed Sep 11, 2023
1 parent c845f47 commit e277c0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/testshade/testshade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,7 @@ test_shade(int argc, const char* argv[])
std::cout << texturesys->getstats(5) << "\n";
std::cout << ustring::getstats() << "\n";
}
if (debug1 || print_groupdata) {
if ((debug1 || print_groupdata) && !batched) {
int groupdata_size;
shadingsys->getattribute(shadergroup.get(), "llvm_groupdata_size",
TypeDesc::INT, &groupdata_size);
Expand Down
14 changes: 14 additions & 0 deletions testsuite/groupdata-opt/ref/out-batched.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Compiled connected_output.osl -> connected_output_shader.oso
Compiled input.osl -> input_shader.oso
Compiled main.osl -> main_shader.oso
Connect input_layer.Val_Out to main_layer.Val_In
Val_in = 0.860313

Connect input_layer.Val_Out to main_layer.Val_In
Val_in = 0.860313

Connect input_layer.Val_Out to test_layer.Val_Out
Connect test_layer.Val_Out to main_layer.Val_In
side-effect
Val_in = 0.860313

0 comments on commit e277c0c

Please sign in to comment.