diff options
author | Dave Airlie <[email protected]> | 2023-08-11 13:15:20 +1000 |
---|---|---|
committer | Danilo Krummrich <[email protected]> | 2023-11-29 03:03:55 +0100 |
commit | e9ba37d9f9a6872b069dd893bd86a7d77ba8c153 (patch) | |
tree | 40dadfe44b7d2502bfbb3759c008821d92209703 /scripts/generate_rust_analyzer.py | |
parent | b9c02e1052650af56d4487efa5fade3fb70e3653 (diff) |
nouveau: find the smallest page allocation to cover a buffer alloc.
With the new uapi we don't have the comp flags on the allocation,
so we shouldn't be using the first size that works, we should be
iterating until we get the correct one.
This reduces allocations from 2MB to 64k in lots of places.
Fixes dEQP-VK.memory.allocation.basic.size_8KiB.forward.count_4000
on my ampere/gsp system.
Cc: [email protected] # v6.6
Signed-off-by: Dave Airlie <[email protected]>
Reviewed-by: Faith Ekstrand <[email protected]>
Signed-off-by: Danilo Krummrich <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions