mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 05:57:08 +01:00
c90113f4d3
On a GeForce GTX 1050 (driver 582.28) every DDS texture loaded in the background came out white: the driver reports hostImageCopy for the format, but an image with VK_IMAGE_USAGE_HOST_TRANSFER_BIT can't be made (vmaCreateImage fails with VK_ERROR_FEATURE_NOT_PRESENT), and the texture was left without a gpu image. - The check of a format (once a format) also asks the allocator for the memory a trial image of the textures' kind would go to, and uses hostImageCopy only when there is such memory and it is device local. - Each texture is checked against the limits of the format for that use (maxExtent, maxMipLevels), which were left unread. - An image the driver still can't make is made again without the host transfer usage and filled through a staging buffer, and the rest of its format goes that way too. - The log says once a format which way its textures go. Devices where hostImageCopy works keep it: the check is made once a format.