zink: do not unmap dt-buffers twice

Seems I missed that we already did an unconditional unmap here, and
forgot to remove it. Whoops.

Fixes: 5159f406d ("zink: use gallium api to copy to display-target")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11414>
This commit is contained in:
Erik Faye-Lund 2021-06-16 02:34:18 -07:00 committed by Marge Bot
parent bb9efa527a
commit 0bb4703292
1 changed files with 0 additions and 2 deletions

View File

@ -1132,8 +1132,6 @@ zink_flush_frontbuffer(struct pipe_screen *pscreen,
winsys->displaytarget_unmap(winsys, res->dt);
}
winsys->displaytarget_unmap(winsys, res->dt);
assert(res->dt);
if (res->dt)
winsys->displaytarget_display(winsys, res->dt, winsys_drawable_handle, sub_box);