gl_frame_gen test: reprojection's depth switch is FG_RP_DEPTH

FG_PGXP now names the PGXP feature pass (#558-#560: none / depth / color
/ seam); the reprojection pass turns PGXP depth on with FG_RP_DEPTH=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shokunin
2026-10-07 22:40:01 -07:00
parent 706cb0cdd5
commit 4ba48c331f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -156,11 +156,11 @@ def main():
# pan 1 (the scene above, with PGXP depth): its real frames must be
# the generation-off run's; pan 6: a camera move the warp must follow.
for pgxp, pan in (("1", "1"), ("0", "6")):
env = dict(os.environ, FG_METHOD="reprojection", FG_PGXP=pgxp, FG_PAN=pan)
env = dict(os.environ, FG_METHOD="reprojection", FG_RP_DEPTH=pgxp, FG_PAN=pan)
command = [str(c) for c in (probe, s, 1, path, args.frames, timing)]
r = subprocess.run(command, cwd=dest, capture_output=True, text=True,
encoding="utf-8", errors="replace", env=env)
receipt.append({"cmd": command, "env": {"FG_METHOD": "reprojection", "FG_PGXP": pgxp, "FG_PAN": pan},
receipt.append({"cmd": command, "env": {"FG_METHOD": "reprojection", "FG_RP_DEPTH": pgxp, "FG_PAN": pan},
"exit": r.returncode, "stdout": r.stdout, "stderr": r.stderr[-4000:]})
(dest / "receipt.json").write_text(json.dumps(receipt, indent=2), encoding="utf-8")
p = parse(r.stdout)
+1 -1
View File
@@ -361,7 +361,7 @@ int main(int argc, char **argv) {
if (pt_mode) check(gl_renderer_present_thread_active(), "present thread started");
const char *method = getenv("FG_METHOD");
const int rp = method && !strcmp(method, "reprojection");
const int pgxp = getenv("FG_PGXP") && getenv("FG_PGXP")[0] == '1';
const int pgxp = getenv("FG_RP_DEPTH") && getenv("FG_RP_DEPTH")[0] == '1'; /* reprojection pass: PGXP depth on */
if (getenv("FG_PAN")) g_pan = atoi(getenv("FG_PAN")) > 0 ? atoi(getenv("FG_PAN")) : 1;
if (pgxp) gl_renderer_set_pgxp_depth(1);
if (fg) {