View Issue Details

IDProjectCategoryView StatusLast Update
0000009Kohi EngineBugspublic2026-11-11 14:21
Reportertravisvroman Assigned Totravisvroman  
PrioritylowSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Versionv0.14.0 
Target Versionv0.14.0Fixed in Versionv0.14.0 
Summary0000009: [BUG] image/pixel copy to buffer fails to copy correctly for AMD cards
Description

Ported over from GitHub issues: https://github.com/travisvroman/kohi/issues/104

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.

Tagsbug
Revision

Activities

travisvroman

2026-11-11 14:21

administrator   ~0000011

Should be fixed in trunk as of r114. Vulkan image creation now checks feature capability before choosing tiling mode.

Issue History

Date Modified Username Field Change
2026-10-19 17:57 travisvroman New Issue
2026-10-19 17:57 travisvroman Status new => assigned
2026-10-19 17:57 travisvroman Assigned To => travisvroman
2026-10-19 17:57 travisvroman Tag Attached: bug
2026-11-11 14:21 travisvroman Status assigned => resolved
2026-11-11 14:21 travisvroman Resolution open => fixed
2026-11-11 14:21 travisvroman Product Version => v0.14.0
2026-11-11 14:21 travisvroman Fixed in Version => v0.14.0
2026-11-11 14:21 travisvroman Target Version => v0.14.0
2026-11-11 14:21 travisvroman Note Added: 0000011