[GPU] Handle kRegisters and kGammaRamp in the trace viewer
This commit is contained in:
parent
2473496c7e
commit
44cda56d35
|
@ -20,36 +20,6 @@
|
|||
namespace xe {
|
||||
namespace gpu {
|
||||
|
||||
// void Foo() {
|
||||
// auto trace_ptr = trace_data;
|
||||
// while (trace_ptr < trace_data + trace_size) {
|
||||
// auto cmd_type = *reinterpret_cast<const TraceCommandType*>(trace_ptr);
|
||||
// switch (cmd_type) {
|
||||
// case TraceCommandType::kPrimaryBufferStart:
|
||||
// break;
|
||||
// case TraceCommandType::kPrimaryBufferEnd:
|
||||
// break;
|
||||
// case TraceCommandType::kIndirectBufferStart:
|
||||
// break;
|
||||
// case TraceCommandType::kIndirectBufferEnd:
|
||||
// break;
|
||||
// case TraceCommandType::kPacketStart:
|
||||
// break;
|
||||
// case TraceCommandType::kPacketEnd:
|
||||
// break;
|
||||
// case TraceCommandType::kMemoryRead:
|
||||
// break;
|
||||
// case TraceCommandType::kMemoryWrite:
|
||||
// break;
|
||||
// case TraceCommandType::kEvent:
|
||||
// break;
|
||||
// }
|
||||
// /*trace_ptr = graphics_system->PlayTrace(
|
||||
// trace_ptr, trace_size - (trace_ptr - trace_data),
|
||||
// GraphicsSystem::TracePlaybackMode::kBreakOnSwap);*/
|
||||
// }
|
||||
//}
|
||||
|
||||
class TraceReader {
|
||||
public:
|
||||
struct CommandBuffer {
|
||||
|
|
|
@ -408,6 +408,18 @@ void TraceViewer::DrawPacketDisassemblerUI() {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case TraceCommandType::kRegisters: {
|
||||
auto cmd = reinterpret_cast<const RegistersCommand*>(trace_ptr);
|
||||
trace_ptr += sizeof(*cmd) + cmd->encoded_length;
|
||||
// ImGui::BulletText("Registers");
|
||||
break;
|
||||
}
|
||||
case TraceCommandType::kGammaRamp: {
|
||||
auto cmd = reinterpret_cast<const GammaRampCommand*>(trace_ptr);
|
||||
trace_ptr += sizeof(*cmd) + cmd->encoded_length;
|
||||
// ImGui::BulletText("GammaRamp");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
ImGui::EndChild();
|
||||
|
|
Loading…
Reference in New Issue