From 043c9b2e8ac6e93e904e3d7cf8816a346c1d3f20 Mon Sep 17 00:00:00 2001 From: Andrew Chan Date: Sun, 14 Apr 2024 14:53:55 -0700 Subject: [PATCH] ditto for nd_rasterize --- vendor/gsplat-metal/gsplat_metal.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/gsplat-metal/gsplat_metal.mm b/vendor/gsplat-metal/gsplat_metal.mm index e2a3464..b17c673 100644 --- a/vendor/gsplat-metal/gsplat_metal.mm +++ b/vendor/gsplat-metal/gsplat_metal.mm @@ -665,7 +665,7 @@ void dispatchKernel(MetalContext* ctx, id cpso, MTLSize int32_t block_size_dim2[2] = {std::get<0>(block), std::get<1>(block)}; MetalContext* ctx = get_global_context(); - MTLSize grid_size = MTLSizeMake(img_height, img_width, 1); + MTLSize grid_size = MTLSizeMake(img_width, img_height, 1); MTLSize thread_group_size = MTLSizeMake(block_size_dim2[0], block_size_dim2[1], 1); dispatchKernel(ctx, ctx->nd_rasterize_forward_kernel_cpso, grid_size, thread_group_size, { EncodeArg::array(tile_bounds_arr, sizeof(tile_bounds_arr)),