code wiki / (root) / nx_gpudriver_research.nx

nx_gpudriver_research.nx source

↩ module page · 27 lines · 1824 B

1// nx_gpudriver_research.nx -- THIN structured UNIVERSAL-GPU-DRIVER research source organ (the open-driver path to 2// drive NVIDIA/AMD/Intel without the proprietary stack). COMPOSES nx_research_engine; sources under SECTIONS, NO 3// copy-pasted loop. Supersedes nx_gpu_driver_research_fetch. expect_exit: 0 license_tier: ORIGINAL 4import "nx_research_engine.nx" 5const K_MAGIC_8388608: i64 = 8388608 6 7func main() -> i64 { 8 let store: *TrustStore = rf_init() 9 if (store as i64) == 0 { rf_puts("gpudriver: trust store load failed\n" as *u8); return 1 } 10 rf_puts("CA roots="); rf_putn(trust_store_count(store)); rf_puts(" -- GPU-DRIVER research -> Library\n" as *u8) 11 let cap: i64 = K_MAGIC_8388608 12 let out: *u8 = sys_mmap(cap) 13 var ok: i64 = 0 14 15 rf_section("the sovereign open-driver path (drive vendor GPUs without the proprietary stack)" as *u8) 16 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Free_and_open-source_graphics_device_driver" as *u8, "gd_foss" as *u8, store, out, cap) 17 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Nouveau_(software)" as *u8, "gd_nouveau" as *u8, store, out, cap) 18 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Mesa_(computer_graphics)" as *u8, "gd_mesa" as *u8, store, out, cap) 19 20 rf_section("the kernel GPU interface + the bus + Intel" as *u8) 21 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Direct_Rendering_Manager" as *u8, "gd_drm" as *u8, store, out, cap) 22 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/PCI_Express" as *u8, "gd_pcie" as *u8, store, out, cap) 23 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Intel_Graphics" as *u8, "gd_intel" as *u8, store, out, cap) 24 25 rf_puts("GPUDRIVER BANKED: "); rf_putn(ok); rf_puts(" / 6 (run nx_library_harvest_v2 to index)\n" as *u8) 26 return 0 27}