diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2021-02-03 17:29:24 -0500 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-04-05 22:24:32 +0000 |
commit | a565ead64a218de1083afc20cee962ef53e25398 (patch) | |
tree | eaa6d62c5cea0710030f934e8c2b984b02d92e75 | |
parent | 6433661cdad06ef24ebc48566bb7b24443efeab2 (diff) |
zink: only use host mem for staging resources with linear tiling
VK_EXT_4444_formats strikes again
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9985>
-rw-r--r-- | src/gallium/drivers/zink/zink_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 82ef081e3d8..b2eaaedee15 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -429,7 +429,7 @@ resource_object_create(struct zink_screen *screen, const struct pipe_resource *t } vkGetImageMemoryRequirements(screen->dev, obj->image, &reqs); - if (templ->usage == PIPE_USAGE_STAGING) + if (templ->usage == PIPE_USAGE_STAGING && ici.tiling == VK_IMAGE_TILING_LINEAR) flags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; else flags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT; |