zink: use imageless framebuffers

this feature lets zink avoid the screen-based framebuffer cache with locks
in favor of a context-based one that doesn't need any complicated wizardry
to work since it doesn't need to track refcounts for attachments or work
across contexts since the surface info gets passed in when the renderpass
is begun

also expand the dummy surface to an array for use with multisampling and simplify
surface refs there for non-imageless case

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12661>
This commit is contained in:
Mike Blumenkrantz
2021-06-30 11:51:31 -04:00
committed by Marge Bot
parent 9643f0b8fc
commit c552d99b09
7 changed files with 265 additions and 80 deletions

View File

@@ -104,6 +104,10 @@ EXTENSIONS = [
alias="index_uint8",
features=True,
conditions=["$feats.indexTypeUint8"]),
Extension("VK_KHR_imageless_framebuffer",
alias="imgless",
features=True,
conditions=["$feats.imagelessFramebuffer"]),
Extension("VK_EXT_robustness2",
alias="rb2",
properties=True,