nvk: Assert samples == 1

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand
2023-01-30 20:11:55 -06:00
committed by Marge Bot
parent e3afa1e3c2
commit d2b30362eb

View File

@@ -216,6 +216,9 @@ nvk_image_init(struct nvk_device *device,
{
vk_image_init(&device->vk, &image->vk, pCreateInfo);
/* TODO: Implement multisampling */
assert(pCreateInfo->samples == VK_SAMPLE_COUNT_1_BIT);
enum nil_image_usage_flags usage = 0; /* TODO */
if (pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR)
usage |= NIL_IMAGE_USAGE_LINEAR_BIT;