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>
(cherry picked from commit 0bb4703292)
This commit is contained in:
Erik Faye-Lund 2021-06-16 02:34:18 -07:00 committed by Eric Engestrom
parent 007e596ac5
commit 3771988c55
2 changed files with 1 additions and 3 deletions

View file

@ -1156,7 +1156,7 @@
"description": "zink: do not unmap dt-buffers twice",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "5159f406d895c6a253e90c6b076045ac133e55af"
},

View file

@ -1061,8 +1061,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);