zink: move the kopper present fence to the displaytarget object
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 20 Apr 2022 19:32:05 +0000 (15:32 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 21 Apr 2022 19:25:51 +0000 (19:25 +0000)
commit64d5f71bbcb92b564377664371397f8d0a5b57be
treea71a2d82cdd65103857567610dbb8da287dba3a8
parentc5cc9ed29b50ada77f875ad0d999678021678922
zink: move the kopper present fence to the displaytarget object

this is otherwise broken when front/back buffers share the same dt

Fixes: 8ade5588e39 ("zink: add kopper api")

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16070>
src/gallium/drivers/zink/zink_kopper.c
src/gallium/drivers/zink/zink_kopper.h
src/gallium/drivers/zink/zink_resource.c
src/gallium/drivers/zink/zink_resource.h