diff options
author | Vasily Khoruzhick <[email protected]> | 2019-09-28 09:57:55 -0700 |
---|---|---|
committer | Vasily Khoruzhick <[email protected]> | 2019-09-28 10:34:19 -0700 |
commit | 336b021d36f2eb84284a41aeb137bfaf243a0bc5 (patch) | |
tree | 76eb955c94a4eb91286290dd32a3a2bc86ea78ad /scons/llvm.py | |
parent | 3f92d17894bedf2da6aabe017004391b91a5e860 (diff) |
lima: set uniforms_address lower bits properly
Looks like blob uses following values for uniforms buffer:
0 for 8 bytes
1 for 16 bytes
2 for 24 bytes
2 for 32 bytes
3 for 40 bytes
3 for 48 bytes
3 for 56 bytes
3 for 64 bytes
4 for 72 bytes
It all looks like log2(size / 8) rounded up, so let's do the same.
Fixes: 931fc2a7b3f9("lima: do not set the PP uniforms address lowest bits")
Reviewed-by: Icenowy Zheng <[email protected]>
Signed-off-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'scons/llvm.py')
0 files changed, 0 insertions, 0 deletions