nx_sand_capture_gate_t137.nx source
↩ module page · 24 lines · 1536 B
1// Private qualification fixture; composes existing digest-bound capture owner. No publisher or install operation.
2import "nx_game_shader_backend_selected_t55.nx"
3import "nx_gate_verdict.nx"
4import "nx_estate_path.nx"
5const SC_CAP: i64 = 65536 // Existing t31 world-capture allowance.
6const SC_TIMEOUT: i64 = 8000 // Existing t31 per-process deadline.
7func sc_capture(path:*u8,sha:*u8,extent:i64,out:*u8)->i64 {
8 let buf:*u8=sys_mmap(SC_CAP);var n:i64=0
9 if (buf as i64)<=0 {return 3}
10 let rc:i64=gsb_capture_selected(path,sha,extent,"world",buf,SC_CAP,&n,SC_TIMEOUT)
11 if rc!=0||n<=0 {return 3}
12 let wrote:i64=fxc_create(out,buf,n)
13 if wrote!=n {return 3}
14 let digest:*u8=sys_mmap(GPA_SHA_HEX+1);gpa_sha(buf,n,digest)
15 gv_puts("CAPTURE path=");gv_puts(out);gv_puts(" sha256=");gv_puts(digest);gv_puts("\n")
16 return 0
17}
18func main()->i64 {
19 if ep_anchor()<0{return 3}
20 if sc_capture("/volume1/homes/elderwesto/nishihost/buildroot/_build/nx_wgsl_sand_baseline_t137.sov.elf","ba61ac0199731c7fa6e9dc87bba94ffb401e6aeed7c3527f98c6d1ab8e5d398d",1267008,"/volume1/homes/elderwesto/nishihost/buildroot/_build/beach-sand-baseline-t137.txt")!=0{return 3}
21 if sc_capture("/volume1/homes/elderwesto/nishihost/buildroot/_build/nx_wgsl_sand_private_t137.sov.elf","bbee20bd7f749c0a2933954b19a09b0e8a0315eb19728d7cce14429cc7d62506",1270144,"/volume1/homes/elderwesto/nishihost/buildroot/_build/beach-sand-candidate-t137.txt")!=0{return 3}
22 gv_puts("CAPTURES COMPLETE; shader parsing, GPU validation and visual acceptance remain separate\n")
23 return 0
24}