Failed vkCreateImage when using VK_IMAGE_TILING_LINEAR and VK_EXT_descriptor_buffer

Hi

My application occurs assertion on vkCreateImage when Nsight graphics is attached. (vkCreateImage result is VK_ERROR_FORMAT_NOT_SUPPORTED)

I investigated the problem and got reasons the below.

1.Creating a vulkan instance with:
VkPhysicalDeviceDescriptorBufferFeaturesEXT physicalDescriptorBufferFeature;
physicalDescriptorBufferFeature.descriptorBuffer = VK_TRUE;

2.And to call vkCreateImage with:
VkImageCreateInfo imageCreateInfo;
imageCreateInfo = VK_IMAGE_TILING_LINEAR;

Is it not allowed to create VK_IMAGE_TILING_LINEAR images when using “VK_EXT_descriptor_buffer” if Nsight graphics is attached?

System
OS: Windows11
NVIDIA RTX 2000 Ada
Nvidia Driver: 553.35
NSight Graphics 2024.3

Thanks,

Hi y_ota,

Thank you for using Nsight Graphics and providing your feedback. We are sorry for any inconvenience you have encountered. I did some research, and I think I can repro your issue on Nsight Graphics, but could you double confirm that the issue will go if you launch the app directly without Nsight Graphics?

Thanks
An

Hi,

I tried again and did not get the problem if launch directly without Nsight Graphics on my environment.

Texture is created the code like:
VkImageCreateInfo imageCreateInfo = vks::initializers::imageCreateInfo();
imageCreateInfo.imageType = VK_IMAGE_TYPE_2D;
imageCreateInfo.format = VK_FORMAT_R8_UNORM;
imageCreateInfo.extent = { 256, 256, 1 };
imageCreateInfo.mipLevels = 1;
imageCreateInfo.arrayLayers = 1;
imageCreateInfo.samples = VK_SAMPLE_COUNT_1_BIT;
imageCreateInfo.tiling = VK_IMAGE_TILING_LINEAR;
imageCreateInfo.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_STORAGE_BIT;
imageCreateInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
imageCreateInfo.initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED;
VkImage mappableImage;
auto result = vkCreateImage(vulkanDevice->logicalDevice, &imageCreateInfo, nullptr, &mappableImage);

vkCreateImage result code is VK_SUCCESS if without Nsight Graphics,
but VK_ERROR_FORMAT_NOT_SUPPORTED if launch with Nsight Graphics.
I have reconfirmed the above.

Thanks,

Hi y_ota,

Thanks for the double confirm. As I said in previous reply, I can repro the issue and an internal case has been created to track it.

Thanks
An

Hi y_ota,

The issue has been fixed, and you need to use the latest Vulkan beta driver (Here is the URL: Vulkan Driver Support | NVIDIA Developer and the latest one should be this: https://developer.nvidia.com/downloads/vulkan-beta-55368-windows ). I have tried the vulkan-beta-55368-windows driver, and it works fine in my local machine.

Thanks
An

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.