Jump to content

Ultra does not work with AMD RX6800M, AMD RX6900 XT


Canardia
 Share

Go to solution Solved by Josh,

Recommended Posts

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.

image.thumb.png.e47e45eaee62b0e321a6ddf2f5ac0024.png

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • Solution

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;

 

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...