Vulkan errors report
Started by Ekaseo




26 posts in this topic
vlj
Unregistered


 
03-17-2016, 06:11 PM -
#21
Actually the spec allows this for linear tiling :

Quote:Images created with tiling equal to VK_IMAGE_TILING_LINEAR have further restrictions on their limits and capabilities compared to images created with tiling equal to VK_IMAGE_TILING_OPTIMAL. Creation of images with tiling VK_IMAGE_TILING_LINEAR may not be supported unless other parameters meet all of the constraints:

imageType is VK_IMAGE_TYPE_2D
format is not a depth/stencil format
mipLevels is 1
arrayLayers is 1
samples is VK_SAMPLE_COUNT_1_BIT
usage only includes VK_IMAGE_USAGE_TRANSFER_SRC_BIT and/or VK_IMAGE_USAGE_TRANSFER_DST_BIT
Implementations may support additional limits and capabilities beyond those listed above. To determine the specific capabilities of an implementation, query the valid usage bits by calling vkGetPhysicalDeviceFormatProperties and the valid limits for mipLevels and arrayLayers by calling vkGetPhysicalDeviceImageFormatProperties.

In my case the driver reports linear tiling support for VK_IMAGE_USAGE_SAMPLED_BIT for RGBA8 format. Unfortunatly the mipLevel constraint applies.
The backend should not only check for VkFormatProperties::linearTilingFeatures bits but also calls vkGetPhysicalDeviceImageFormatProperties (https://www.khronos.org/registry/vulkan/...Properties ).

I tried to enforce optimal tiling for sampled image here :

https://github.com/RPCS3/rpcs3/blob/mast...e.cpp#L226

but then it crashes in this block:
https://github.com/RPCS3/rpcs3/blob/mast...e.cpp#L375


Messages In This Thread
RE: Vulkan errors report - by Ekaseo - 03-11-2016, 10:34 AM
RE: Vulkan errors report - by tambre - 03-11-2016, 12:28 PM
RE: Vulkan errors report - by Annie - 03-11-2016, 02:11 PM
RE: Vulkan errors report - by Ekaseo - 03-11-2016, 03:17 PM
RE: Vulkan errors report - by tambre - 03-11-2016, 03:24 PM
RE: Vulkan errors report - by Ekaseo - 03-11-2016, 03:37 PM
RE: Vulkan errors report - by tambre - 03-11-2016, 04:08 PM
RE: Vulkan errors report - by Ekaseo - 03-11-2016, 06:30 PM
RE: Vulkan errors report - by cuzudo - 03-11-2016, 08:20 PM
RE: Vulkan errors report - by Yagami Light9 - 03-11-2016, 09:46 PM
RE: Vulkan errors report - by Yagami Light9 - 03-12-2016, 11:25 PM
RE: Vulkan errors report - by Ekaseo - 03-12-2016, 11:42 PM
RE: Vulkan errors report - by cuzudo - 03-13-2016, 12:05 AM
RE: Vulkan errors report - by vlj - 03-16-2016, 01:35 AM
RE: Vulkan errors report - by kd-11 - 03-16-2016, 09:18 AM
RE: Vulkan errors report - by vlj - 03-16-2016, 04:46 PM
RE: Vulkan errors report - by AlexVS - 03-16-2016, 06:33 PM
RE: Vulkan errors report - by Annie - 03-16-2016, 07:44 PM
RE: Vulkan errors report - by AlexVS - 03-16-2016, 10:27 PM
RE: Vulkan errors report - by kd-11 - 03-17-2016, 04:18 PM
RE: Vulkan errors report - by vlj - 03-17-2016, 06:11 PM
RE: Vulkan errors report - by kd-11 - 03-17-2016, 08:46 PM
RE: Vulkan errors report - by AlexVS - 03-24-2016, 12:32 PM
RE: Vulkan errors report - by tambre - 03-24-2016, 01:08 PM
RE: Vulkan errors report - by AlexVS - 03-24-2016, 01:30 PM
RE: Vulkan errors report - by AlexVS - 03-25-2016, 04:18 PM
RE: Vulkan errors report - by vlj - 03-31-2016, 07:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)