qcom: use hwinterface (#8565)

* qcom: use hwinterface

* ops

* not needed anymore
This commit is contained in:
nimlgen
2025-01-11 17:11:23 +03:00
committed by GitHub
parent 60503c8621
commit 2f0856c1e2
3 changed files with 7 additions and 5 deletions

View File

@@ -227,6 +227,7 @@ generate_kgsl() {
fixup $BASE/kgsl.py
sed -i "s\import ctypes\import ctypes, os\g" $BASE/kgsl.py
sed -nE 's/#define ([A-Za-z0-9_]+)_SHIFT\s*[^\S\r\n]*[0-9]*$/def \1(val): return (val << \1_SHIFT) \& \1_MASK/p' extra/qcom_gpu_driver/msm_kgsl.h >> $BASE/kgsl.py
sed -i "s\fcntl.ioctl(__fd, (__idir<<30)\__fd.ioctl((__idir<<30)\g" $BASE/kgsl.py
python3 -c "import tinygrad.runtime.autogen.kgsl"
}