fix global vmap baking determinism - eliminate dupes

This commit is contained in:
Ryan Fleury
2026-04-20 14:15:38 -07:00
parent 16ea060382
commit 5fb1ef4df9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3010,7 +3010,7 @@ p2r_convert(Arena *arena, P2R_ConvertParams *params)
{
for(NamespaceNode *n = all_namespace_slots[slot_idx]; n != 0; n = n->next)
{
raddbg_log("%S%s\n", n->string, n->corresponds_to_scope ? " (is scope)" : n->type != 0 ? " (is type)" : "");
// raddbg_log("%S%s\n", n->string, n->corresponds_to_scope ? " (is scope)" : n->type != 0 ? " (is type)" : "");
if(n->corresponds_to_scope || n->scope != 0 || n->type != 0) { continue; }
String8 string = n->string;
RDIM_Namespace *ns = rdim_namespace_chunk_list_push(arena, &lane_namespaces, 32);
+1 -1
View File
@@ -486,7 +486,7 @@ rdim_bake(Arena *arena, RDIM_BakeParams *params)
{
U64 slot_idx = lane_idx()*all_global_variables->chunk_count + chunk_idx;
Rng1U64 range = lane_range(n->count);
for EachIndex(n_idx, n->count)
for EachInRange(n_idx, range)
{
if(n->v[n_idx].location_cases.count == 1 &&
n->v[n_idx].location_cases.first->location.kind == RDI_LocationKind_ModuleOff)