yuq / mesa-lima

Deprecated, new place: https://gitlab.freedesktop.org/lima
https://github.com/yuq/mesa-lima/wiki
165 stars 18 forks source link

lima: call lima_bo_va_unmap when freeing bo #27

Closed anarsoul closed 6 years ago

anarsoul commented 6 years ago

Otherwise we'll get 'lima vm map va overlap' error from kernel if another bo takes va of freed bo

That fixes 'lima vm map va overlap' issue with glmark2-es-drm and now I'm hitting following assertion: glmark2-es2-drm: lima_draw.c:1066: lima_flush: Assertion `ctx->buffer_state[lima_ctx_buff_sh_varying].offset + ctx->buffer_state[lima_ctx_buff_sh_varying].size <= sh_gl_pos_offset - sh_varying_offset' failed.

Looks like we need dynamic buffer allocation.