Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] image/pixel copy to buffer fails to copy correctly for AMD cards #104

Open
matthewsgc opened this issue Nov 16, 2022 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@matthewsgc
Copy link

Describe the bug
Changes with episode 78 - pixel perfect object selection produce odd results, sometime the right value, sometimes zero, sometimes seemingly random high values. The issue is created when copying from the image to a buffer. While RenderDoc shows perfect image creation, the results from the copy are not.

To Reproduce
I am using a AMD Radeon RX 5700 XT - I am guessing any AMD card would do.
Try the hover functionality - see occasionally weird "object ids" appear, and mostly 0s, very rarely, the right object id

Expected behavior
return the correct object id

Screenshots

Desktop (please complete the following information):

  • OS: Windows 11
  • Card: AMD Radeon RX 5700 XT, latest drivers etc.
  • Version [e.g. 22]

Additional context
The solution to the problem is to change the image tiling on the colour attachment image from VK_IMAGE_TILING_OPTIMAL to VK_IMAGE_TILING_LINEAR. Note this cannot be a global change for depth attachments require image tiling to be set to VK_IMAGE_TILING_OPTIMAL.

@matthewsgc matthewsgc added the bug Something isn't working label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants