18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 02:42:46 +01:00
Commit Graph

9 Commits

Author SHA1 Message Date
Hirek 02f450c1ab fix(vulkan): a texture image that fails for another reason doesn't turn off host copy for its format
An image to be filled by the host which can't be made is tried again without the host transfer usage, and only when that one
can be made is the format filled through staging buffers from then on. When it can't either (the memory ran out), the texture
fails as before and the format keeps the host copy. The warning says the error logged before it was recovered from.
2026-12-01 16:03:43 +01:00
Hirek c90113f4d3 fix(vulkan): textures filled by the host fall back to staging buffers where the driver can't make their images
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.
2026-11-30 23:37:40 +01:00
Hirek 43c46952ab perf(render): the Vulkan renderer resolves MSAA once a pass, keeps the window of the draw blocks and makes the multi draw shaders and ray tracing textures in the background 2026-11-25 10:27:31 +01:00
Hirek ff2ff308ed Some optimalisations 2026-11-09 20:58:02 +01:00
Hirek 1447dcf075 Walk the shadow passes and the culled model groups on worker threads in the Vulkan renderer 2026-10-27 20:56:11 +01:00
Hirek f20b1a3071 Replace cubemap scenery reflections with SSR, add Vulkan ray traced reflections 2026-10-25 13:54:49 +01:00
Hirek c48c58776a Vulkan: parity with GL (P1–P7), shared GPU culling records (N6c), threaded command recording and render thread (M1, M4) 2026-10-25 03:06:01 +01:00
Hirek 9b7d02e5fb Vulkan: scene rendering (D1–D7) on a scene walk shared with GL (N6a, N6b) 2026-10-24 20:10:24 +02:00
Hirek bd589f272d feat(vulkan): vulkan 1.4 core with the user interface and the launcher, shaders split into ogl46/vk14 with SPIR-V binaries loaded first 2026-10-24 05:47:11 +02:00