ogl_beamforming

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

Commit: 358a6695b6f36e4ae9425bf8ce1dcf07e9c8df9a
Parent: 43521d3122065b555f4398d30a1c73d82fad7485
Author: Randy Palamar
Date:   Sat, 21 Jun 2025 22:38:23 -0600

core: don't overrun timing table buffer when coalescing

Diffstat:
Mbeamformer.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/beamformer.c b/beamformer.c @@ -701,7 +701,7 @@ coalesce_timing_table(ComputeTimingTable *t, ComputeShaderStats *stats) u32 seen_info_test = 0; while (t->read_index != target) { - ComputeTimingInfo info = t->buffer[t->read_index++]; + ComputeTimingInfo info = t->buffer[(t->read_index++) % countof(t->buffer)]; switch (info.kind) { case ComputeTimingInfoKind_ComputeFrameBegin:{ assert(t->compute_frame_active == 0);