mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Debugger: Improve tag on copies.
MemInit shows up sometimes when the allocation would be more useful.
This commit is contained in:
parent
7389a36fad
commit
6945151384
1 changed files with 3 additions and 2 deletions
|
@ -461,7 +461,8 @@ std::vector<MemBlockInfo> FindMemInfoByFlag(MemBlockFlags flags, uint32_t start,
|
|||
std::string GetMemWriteTagAt(uint32_t start, uint32_t size) {
|
||||
std::vector<MemBlockInfo> memRangeInfo = FindMemInfoByFlag(MemBlockFlags::WRITE, start, size);
|
||||
for (auto range : memRangeInfo) {
|
||||
return range.tag;
|
||||
if (range.tag != "MemInit")
|
||||
return range.tag;
|
||||
}
|
||||
|
||||
// Fall back to alloc and texture, especially for VRAM. We prefer write above.
|
||||
|
@ -469,7 +470,7 @@ std::string GetMemWriteTagAt(uint32_t start, uint32_t size) {
|
|||
for (auto range : memRangeInfo) {
|
||||
return range.tag;
|
||||
}
|
||||
return "none";
|
||||
return StringFromFormat("%08x_size_%08x", start, size);
|
||||
}
|
||||
|
||||
void MemBlockInfoInit() {
|
||||
|
|
Loading…
Add table
Reference in a new issue