mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Debugger: Improve tag on copies.
MemInit shows up sometimes when the allocation would be more useful.
This commit is contained in:
1 parent
7389a36fad
commit
6945151384
1 file changed
+3
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user