assembly/amd: more refactors (#13907)

* assembly/amd: more refactors

* more refactors

* more refactors

* simpler emu

* generate.py

* regen all

* cleanups

* more

* work

* more readme

* lil
This commit is contained in:
George Hotz
2025-12-30 16:13:24 -05:00
committed by GitHub
parent 49d1bf93d6
commit efc99d0c55
18 changed files with 2585 additions and 3040 deletions

View File

@@ -187,7 +187,7 @@ class PM4Executor(AMDQueue):
if st <= prg_addr < st+sz: prg_sz = sz - (prg_addr - st)
assert prg_sz > 0, "Invalid prg ptr (not found in mapped ranges)"
# Pass valid memory ranges and rsrc2 to Python emulator for bounds checking and SGPR layout
# Pass valid memory ranges and rsrc2 to Python emulator for bounds checking and SGPR/VGPR layout
if hasattr(remu, 'valid_mem_ranges'): remu.valid_mem_ranges = self.gpu.mapped_ranges
if hasattr(remu, 'rsrc2'): remu.rsrc2 = rsrc2
err = remu.run_asm(prg_addr, prg_sz, *gl, *lc, args_addr)