mask off more work based on subset flags from baker

This commit is contained in:
Ryan Fleury
2025-10-15 15:44:04 -07:00
parent d9d321c074
commit 25beda50ca
3 changed files with 26 additions and 9 deletions
+4 -2
View File
@@ -1212,7 +1212,9 @@ rdim_bake(Arena *arena, RDIM_BakeParams *params)
//////////////////////////////////////////////////////////////
//- rjf: @rdim_bake_stage build index runs
//
ProfScope("build index runs")
B32 need_index_runs = (!!(params->subset_flags & RDIM_SubsetFlag_NameMaps) ||
!!(params->subset_flags & RDIM_SubsetFlag_Types));
if(need_index_runs) ProfScope("build index runs")
{
Temp scratch = scratch_begin(&arena, 1);
@@ -1501,7 +1503,7 @@ rdim_bake(Arena *arena, RDIM_BakeParams *params)
//////////////////////////////////////////////////////////////
//- rjf: @rdim_bake_stage bake idx runs
//
ProfScope("bake idx runs")
if(need_index_runs) ProfScope("bake idx runs")
{
// rjf: set up
if(lane_idx() == 0)