mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 12:18:30 +09:00
[Fix] (trace-replay): support alternate golden images
- compare actual output against primary and alternate golden images - record the matched golden path in trace replay results - allow APK and Linux retrace fixtures to pass alternate golden paths - keep nostalgia validation accepting both Mesa and PC goldens
This commit is contained in:
@@ -54,6 +54,7 @@ Java_top_mobilegl_plugin_trace_TraceReplayActivity_nativeRunTraceReplay(JNIEnv*
|
||||
jobject surface,
|
||||
jstring tracePath,
|
||||
jstring goldenPath,
|
||||
jstring alternateGoldenPath,
|
||||
jstring outputDir,
|
||||
jstring diffPath,
|
||||
jstring backend,
|
||||
@@ -70,6 +71,10 @@ Java_top_mobilegl_plugin_trace_TraceReplayActivity_nativeRunTraceReplay(JNIEnv*
|
||||
mobilegl_trace::Request request;
|
||||
request.tracePath = ToString(env, tracePath);
|
||||
request.goldenPath = ToString(env, goldenPath);
|
||||
std::string alternateGolden = ToString(env, alternateGoldenPath);
|
||||
if (!alternateGolden.empty()) {
|
||||
request.alternateGoldenPaths.push_back(alternateGolden);
|
||||
}
|
||||
request.outputDir = ToString(env, outputDir);
|
||||
request.diffPath = ToString(env, diffPath);
|
||||
request.backend = ToString(env, backend);
|
||||
|
||||
Reference in New Issue
Block a user