From da608d2b33787d72165617ba2f59dc16f49ec29c Mon Sep 17 00:00:00 2001 From: Josh Simmons Date: Mon, 4 Nov 2024 22:26:25 +0100 Subject: [PATCH] shark: Remove test work amplification --- title/shark/src/main.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/title/shark/src/main.rs b/title/shark/src/main.rs index 5441cb5..f1a368f 100644 --- a/title/shark/src/main.rs +++ b/title/shark/src/main.rs @@ -1371,16 +1371,14 @@ impl<'gpu> DrawState<'gpu> { }, ); - for _ in 0..4 { - gpu.cmd_dispatch( - cmd_encoder, - (draw_buffer_len - + (self.pipelines.draw_2d_bin_1_scatter_pipeline_workgroup_size - 1)) - / self.pipelines.draw_2d_bin_1_scatter_pipeline_workgroup_size, - 1, - 1, - ); - } + gpu.cmd_dispatch( + cmd_encoder, + (draw_buffer_len + + (self.pipelines.draw_2d_bin_1_scatter_pipeline_workgroup_size - 1)) + / self.pipelines.draw_2d_bin_1_scatter_pipeline_workgroup_size, + 1, + 1, + ); gpu.cmd_barrier( cmd_encoder, -- 2.49.0