Skip to content

Commit

Permalink
rsx: Fix upload block range optimization
Browse files Browse the repository at this point in the history
- The 'max' index should take the first assigned ID; fixes problems with divisors
  • Loading branch information
kd-11 committed May 19, 2019
1 parent a245d9f commit 8009e53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpcs3/Emu/RSX/RSXThread.h
Expand Up @@ -208,7 +208,7 @@ namespace rsx
}

const u32 max_index = (first + count) - 1;
u32 _max_index = first;
u32 _max_index = 0;
u32 _min_index = first;

for (const auto &attrib : locations)
Expand Down Expand Up @@ -242,6 +242,7 @@ namespace rsx
}
}

verify(HERE), _max_index >= _min_index;
return { _min_index, (_max_index - _min_index) + 1 };
}
};
Expand Down

0 comments on commit 8009e53

Please sign in to comment.