zink: don't emit SpvCapabilityStorageImageMultisample for fbfetch

Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15823>
This commit is contained in:
Mike Blumenkrantz 2022-04-08 13:06:44 -04:00 committed by Marge Bot
parent 538472e279
commit 387f6e0173
1 changed files with 1 additions and 1 deletions

View File

@ -1273,7 +1273,7 @@ spirv_builder_type_image(struct spirv_builder *b, SpvId sampled_type,
sampled_type, dim, depth ? 1 : 0, arrayed ? 1 : 0, ms ? 1 : 0, sampled,
image_format
};
if (sampled == 2 && ms)
if (sampled == 2 && ms && dim != SpvDimSubpassData)
spirv_builder_emit_cap(b, SpvCapabilityStorageImageMultisample);
return get_type_def(b, SpvOpTypeImage, args, ARRAY_SIZE(args));
}