ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 27f33707695d4a52321850c5a9800422a2ea4cd8
Parent: dd51733c19181f310d5bdeb5e595e0ea8c91fafb
Author: Randy Palamar
Date:   Tue, 24 Jun 2025 09:26:31 -0600

core: drop one unneeded glFinish() call

Diffstat:
Mbeamformer.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/beamformer.c b/beamformer.c @@ -654,10 +654,8 @@ complete_queue(BeamformerCtx *ctx, BeamformWorkQueue *q, Arena arena, iptr gl_co do_compute_shader(ctx, arena, frame, stages[i]); glEndQuery(GL_TIME_ELAPSED); } - /* NOTE(rnp): block until work completes so that we can record timings */ - glFinish(); - cs->processing_progress = 1; + /* NOTE(rnp): the first of these blocks until work completes */ for (u32 i = 0; i < stage_count; i++) { ComputeTimingInfo info = {0}; info.kind = ComputeTimingInfoKind_Shader; @@ -665,6 +663,7 @@ complete_queue(BeamformerCtx *ctx, BeamformWorkQueue *q, Arena arena, iptr gl_co glGetQueryObjectui64v(cs->shader_timer_ids[i], GL_QUERY_RESULT, &info.timer_count); push_compute_timing_info(ctx->compute_timing_table, info); } + cs->processing_progress = 1; frame->ready_to_present = 1; if (did_sum_shader) {