Skip to content

asahi: Do not overread user index buffers

Asahi Lina requested to merge asahilina/mesa:agx/ib-overread into main

We need to align the extent to 4 for the GPU, but we can't copy more than the original size out of the user buffer. Always alloc the exact size we need.

This does mean the GPU gets an IB extent that could include some other stuff later in the pool, if not aligned. This is probably safe? Given the base alignment, it should never cross a page boundary and fault or anything like that.

Signed-off-by: Asahi Lina lina@asahilina.net

Merge request reports