Skip to content

Commit

Permalink
banchmark, removed some old comment
Browse files Browse the repository at this point in the history
gto: fixed issue with glClearBufferSubData that was occurring on AMD graphics cards.
  • Loading branch information
scanberg committed Oct 11, 2024
1 parent 431450a commit 6e0be67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions benchmark/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

UBENCH_STATE();

//extern void bench_com();

int main(int argc, const char *const argv[]) {
//bench_com();
return ubench_main(argc, argv);
}
2 changes: 1 addition & 1 deletion src/md_gto.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void md_gto_segment_and_attribute_to_groups_GPU(float* out_group_values, size_t
GLsizeiptr ssbo_point_group_size = sizeof(uint32_t) * num_points;

// Clear first 16 bytes which represents the result (group_values)
glClearBufferSubData(GL_SHADER_STORAGE_BUFFER, GL_R32UI, ssbo_group_value_offset, ssbo_group_value_size, GL_RED, GL_UNSIGNED_INT, NULL);
glClearBufferSubData(GL_SHADER_STORAGE_BUFFER, GL_R32F, ssbo_group_value_offset, ssbo_group_value_size, GL_RED, GL_FLOAT, NULL);
// Fill next portion of buffer with point xyzr
glBufferSubData(GL_SHADER_STORAGE_BUFFER, ssbo_point_xyzr_offset, ssbo_point_xyzr_size, point_xyzr);
// Fill last portion of buffer with point indices
Expand Down

0 comments on commit 6e0be67

Please sign in to comment.