[D3D12] Resolve fetch memory read tracing

This commit is contained in:
Triang3l
2019-10-25 09:16:42 +03:00
parent c057b5a032
commit f75d927cc5
3 changed files with 10 additions and 4 deletions

View File

@@ -99,8 +99,11 @@ const RenderTargetCache::EDRAMLoadStoreModeInfo
};
RenderTargetCache::RenderTargetCache(D3D12CommandProcessor* command_processor,
RegisterFile* register_file)
: command_processor_(command_processor), register_file_(register_file) {}
RegisterFile* register_file,
TraceWriter* trace_writer)
: command_processor_(command_processor),
register_file_(register_file),
trace_writer_(trace_writer) {}
RenderTargetCache::~RenderTargetCache() { Shutdown(); }
@@ -1037,6 +1040,7 @@ bool RenderTargetCache::Resolve(SharedMemory* shared_memory,
assert_true(fetch.type == 3);
assert_true(fetch.endian == Endian::k8in32);
assert_true(fetch.size == 6);
trace_writer_->WriteMemoryRead(fetch.address << 2, fetch.size << 2);
const uint8_t* src_vertex_address =
memory->TranslatePhysical(fetch.address << 2);
float vertices[6];