ogl_beamforming

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

Commit: ba9b99fed19c9da46620c15c04639080dae659a6
Parent: e7788ed90261d9e8e2c4a4c2b07e9a6c1fb19235
Author: Randy Palamar
Date:   Sun,  2 Nov 2025 11:42:41 -0700

shaders/decode: add extra special cases for WorkGroupSize

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

diff --git a/beamformer.c b/beamformer.c @@ -529,9 +529,10 @@ plan_compute_pipeline(BeamformerComputePlan *cp, BeamformerParameterBlock *pb) db->transmits_processed = db->transmit_count >= 32 ? 2 : 1; + b32 use_16z = db->transmit_count <= 32 || db->transmit_count == 80 || db->transmit_count == 96 || db->transmit_count == 160; sd->layout.x = 4; sd->layout.y = 1; - sd->layout.z = (db->transmit_count <= 32 || db->transmit_count == 80)? 16 : 32; + sd->layout.z = use_16z? 16 : 32; sd->dispatch.x = (u32)ceil_f32((f32)sample_count / (f32)sd->layout.x); sd->dispatch.y = (u32)ceil_f32((f32)pb->parameters.channel_count / (f32)sd->layout.y);