lima: fix clang and address sanitizer reports
This set of patches fixes a variety of reports from clang warnings, scan-build, address sanitizer (gcc), and functional issues running lima with clang reported in #5959 (closed).
More details in the patches themselves.
The more important patches here are:
- lima/gpir: avoid invalid write in regalloc
- lima/ppir: refactor bitcopy to use unsigned char
Which fix respectively segfault and rendering issues when building with clang.
No changes in deqp/piglit/shader-db, but at least now there are a bunch less of warnings and building with clang results in no functional difference than gcc as far as I can tell.
cc @TuxThePenguin0 for #5959 (closed)
Closes #5959 (closed)