Josh Posted October 6, 2023 Posted October 6, 2023 I've got a validation error occurring in the release build that does not occur in the debug build. It did not occur to me that I should try running validation layers with the release build, since I thought the code was identical. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Solution Josh Posted October 6, 2023 Solution Posted October 6, 2023 This particular issue is fixed, although I still see a few problems with specific post-processing effects. This was caused by an error in my code, not by AMD's driver. Let's see who can spot the bug: chaininfo.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR; chaininfo.surface = surface; chaininfo.minImageCount = 2; //if (USE_TRIPLE_BUFFERING) chaininfo.minImageCount = 3; chaininfo.minImageCount = Max(int(capabilities.minImageCount), int(chaininfo.minImageCount)); if (capabilities.maxImageCount != 0) chaininfo.minImageCount = Min(int(chaininfo.minImageCount), int(capabilities.maxImageCount)); chaininfo.imageArrayLayers = 1; chaininfo.imageUsage = VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT;// | VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; if (device->queueinfos.size() == 2) { chaininfo.imageSharingMode = VK_SHARING_MODE_CONCURRENT; chaininfo.queueFamilyIndexCount = 2; uint32_t indices[2] = { device->queueinfos[0].queueFamilyIndex, device->queueinfos[1].queueFamilyIndex }; chaininfo.pQueueFamilyIndices = &indices[0]; } else { chaininfo.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE; chaininfo.queueFamilyIndexCount = 0; // Optional chaininfo.pQueueFamilyIndices = nullptr; // Optional } chaininfo.preTransform = capabilities.currentTransform; chaininfo.compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR; chaininfo.clipped = VK_TRUE; chaininfo.oldSwapchain = VK_NULL_HANDLE; res = vkCreateSwapchainKHR(device->device, &chaininfo, nullptr, &swapChain); if (res != VK_SUCCESS) return false; Quote My job is to make tools you love, with the features you want, and performance you can't live without.
franck22000 Posted October 6, 2023 Posted October 6, 2023 Is it related to the chaininfo.minImageCount definition ? Quote You guys are going to be the death of me. Josh
reepblue Posted October 6, 2023 Posted October 6, 2023 Awesome, I'll try this on my RX480! Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Josh Posted October 6, 2023 Posted October 6, 2023 5 hours ago, franck22000 said: Is it related to the chaininfo.minImageCount definition ? no! Quote My job is to make tools you love, with the features you want, and performance you can't live without.
StOneDOes Posted October 6, 2023 Posted October 6, 2023 On 10/6/2023 at 7:05 AM, Josh said: I have a 6600 now. Editor runs fine in debug mode but crashes in release mode with no messages... Awesome; this was my next question about the editor, because I have a 6600 XT Quote
reepblue Posted October 6, 2023 Posted October 6, 2023 29 minutes ago, StOneDOes said: Awesome; this was my next question about the editor, because I have a 6600 XT Should all work. I expect everything to work on my RX480 as well. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
StOneDOes Posted October 6, 2023 Posted October 6, 2023 11 minutes ago, reepblue said: Should all work. I expect everything to work on my RX480 as well. Yep the editor starts for me now with the latest update. Before it appeared to do nothing after showing the splash screen. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.