zink: flag color attachment images as input attachments at creation
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603>
This commit is contained in:
parent
d31b7dcefd
commit
052f85ea1b
|
@ -207,9 +207,11 @@ get_image_usage_for_feats(struct zink_screen *screen, VkFormatFeatureFlags feats
|
|||
}
|
||||
|
||||
if (bind & PIPE_BIND_RENDER_TARGET) {
|
||||
if (feats & VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT)
|
||||
if (feats & VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT) {
|
||||
usage |= VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
|
||||
else
|
||||
if ((bind & (PIPE_BIND_LINEAR | PIPE_BIND_SHARED)) != (PIPE_BIND_LINEAR | PIPE_BIND_SHARED))
|
||||
usage |= VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT;
|
||||
} else
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue