mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-11 16:18:07 +00:00
fix incorrect work happening w/ subsets turned off for psym generation
This commit is contained in:
@@ -1623,7 +1623,7 @@ RDI_PROC RDI_U32
|
||||
rdim_bake_idx_from_idx_run(RDIM_BakeIdxRunMap *map, RDI_U32 *idxes, RDI_U32 count)
|
||||
{
|
||||
RDI_U32 idx = 0;
|
||||
if(count != 0)
|
||||
if(count != 0 && map->slots_count != 0)
|
||||
{
|
||||
RDI_U64 hash = rdim_hash_from_idx_run(idxes, count);
|
||||
RDI_U64 slot_idx = hash%map->slots_count;
|
||||
|
||||
@@ -1948,7 +1948,12 @@ rdim_bake(Arena *arena, RDIM_BakeParams *params)
|
||||
RDI_U64 nodes_count;
|
||||
};
|
||||
BakedNameMaps *baked_name_maps = 0;
|
||||
ProfScope("bake name maps")
|
||||
if(lane_idx() == 0)
|
||||
{
|
||||
baked_name_maps = push_array(scratch.arena, BakedNameMaps, 1);
|
||||
}
|
||||
lane_sync_u64(&baked_name_maps, 0);
|
||||
if(params->subset_flags & RDIM_SubsetFlag_NameMaps) ProfScope("bake name maps")
|
||||
{
|
||||
Temp scratch2 = scratch_begin(&scratch.arena, 1);
|
||||
|
||||
@@ -2022,7 +2027,6 @@ rdim_bake(Arena *arena, RDIM_BakeParams *params)
|
||||
// rjf: setup
|
||||
ProfScope("setup") if(lane_idx() == 0)
|
||||
{
|
||||
baked_name_maps = push_array(scratch.arena, BakedNameMaps, 1);
|
||||
baked_name_maps->name_maps_count = RDI_NameMapKind_COUNT;
|
||||
baked_name_maps->name_maps = push_array(arena, RDI_NameMap, baked_name_maps->name_maps_count);
|
||||
RDI_U32 bucket_off = 0;
|
||||
|
||||
Reference in New Issue
Block a user