Commit: 0d0fce1c8572bfe29e07ccf08d027486de7cc1c4
Parent: a218bca8f18950e683796450ed45639fdb67c93f
Author: Randy Palamar
Date: Thu, 30 Oct 2025 12:35:52 -0600
core: ensure rf_size is set even when not running a filter stage
this may have been why the cuda path was broken
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/beamformer.c b/beamformer.c
@@ -476,6 +476,10 @@ plan_compute_pipeline(BeamformerComputePlan *cp, BeamformerParameterBlock *pb)
sampling_frequency /= 2 * (f32)decimation_rate;
}
+ cp->rf_size = sample_count * pb->parameters.channel_count * pb->parameters.acquisition_count;
+ if (demodulate || run_cuda_hilbert) cp->rf_size *= 8;
+ else cp->rf_size *= 4;
+
u32 das_sample_stride = 1;
u32 das_transmit_stride = sample_count;
u32 das_channel_stride = sample_count * pb->parameters.acquisition_count;
@@ -610,10 +614,6 @@ plan_compute_pipeline(BeamformerComputePlan *cp, BeamformerParameterBlock *pb)
cp->shader_dispatch[slot].y = (u32)ceil_f32((f32)pb->parameters.channel_count / FILTER_LOCAL_SIZE_Y);
cp->shader_dispatch[slot].z = (u32)ceil_f32((f32)pb->parameters.acquisition_count / FILTER_LOCAL_SIZE_Z);
- cp->rf_size = sample_count * pb->parameters.channel_count * pb->parameters.acquisition_count;
- if (demodulate || run_cuda_hilbert) cp->rf_size *= 8;
- else cp->rf_size *= 4;
-
commit = 1;
}break;
case BeamformerShaderKind_DAS:{