Skip to content

zink: fix descriptor buffer unmaps on screen destroy

Mike Blumenkrantz requested to merge zmike/mesa:zink-inval into main

What does this MR do and why?

zink: fix descriptor buffer unmaps on screen destroy

descriptor buffer uses mapped buffers. mapping/unmapping buffers
uses a ctx in the function params, but at this time there is no ctx.
since the ctx is not actually used for unmapping descriptor buffers,
this can instead use a special buffer unmap function to avoid invalid access

Fixes: b06f6e00fba ("zink: fix heap-use-after-free on batch_state with sub-allocated pipe_resources")

Merge request reports