zink: don't use legacy scanout with modifiers
legacy_scanout is for adding implicit modifiers when modifiers aren't provided, so it can't be used with explicit modifiers also jekstrand said no. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12930>
This commit is contained in:
committed by
Marge Bot
parent
30a9bbe8f6
commit
363ffdaf79
@@ -553,7 +553,8 @@ resource_object_create(struct zink_screen *screen, const struct pipe_resource *t
|
||||
.scanout = true,
|
||||
};
|
||||
|
||||
if ((screen->needs_mesa_wsi || screen->needs_mesa_flush_wsi) && scanout) {
|
||||
if ((screen->needs_mesa_wsi || screen->needs_mesa_flush_wsi) && scanout &&
|
||||
ici.tiling != VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT) {
|
||||
image_wsi_info.pNext = ici.pNext;
|
||||
ici.pNext = &image_wsi_info;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user