Save machine ident in captures and compare to machine ident on open

* If the machine idents differ in significant ways that we'd consider
  it to be a different platform (currently just OS), and if so mark it
  as supported but suggested to be replayed remotely.
This commit is contained in:
baldurk
2016-08-19 17:26:36 +02:00
parent 52a754d4c1
commit d2faf76356
19 changed files with 155 additions and 28 deletions
+6 -5
View File
@@ -625,24 +625,25 @@ namespace renderdocui.Windows
if (m_Core.LogLoading) return;
string driver = "";
bool support = false;
string machineIdent = "";
ReplaySupport support = ReplaySupport.Unsupported;
bool remoteReplay = !local || (m_Core.Renderer.Remote != null && m_Core.Renderer.Remote.Connected);
if (local)
{
support = StaticExports.SupportLocalReplay(filename, out driver);
support = StaticExports.SupportLocalReplay(filename, out driver, out machineIdent);
if (remoteReplay)
{
support = false;
support = ReplaySupport.Unsupported;
string[] remoteDrivers = m_Core.Renderer.GetRemoteSupport();
for (int i = 0; i < remoteDrivers.Length; i++)
{
if (driver == remoteDrivers[i])
support = true;
support = ReplaySupport.Supported;
}
}
}
@@ -651,7 +652,7 @@ namespace renderdocui.Windows
// if driver is empty something went wrong loading the log, let it be handled as usual
// below. Otherwise indicate that support is missing.
if (driver.Length > 0 && !support)
if (driver.Length > 0 && support == ReplaySupport.Unsupported)
{
if (remoteReplay)
{