Commit Graph

22 Commits

Author SHA1 Message Date
Ivan 'provod' Avdeev
df09a4e637 rt: move AS management from vk_rtx to vk_ray_accel
no functional changes yet.
2022-08-27 12:30:53 -07:00
Ivan 'provod' Avdeev
aaab09fd38 vk: remove old ring buffer helper 2022-07-15 00:50:29 -07:00
Ivan 'provod' Avdeev
118bdd9985 vk: use debuffer for geometry mem management 2022-07-09 13:37:09 -07:00
Ivan 'provod' Avdeev
0fcd05554a implement debuffer on top of flipping buffer 2022-07-09 10:41:59 -07:00
Ivan 'provod' Avdeev
c299ac9ccd do not overwrite ubo buffers being used 2022-07-09 10:41:59 -07:00
Ivan 'provod' Avdeev
b0f1b60f62 vk: supposedly fix menu glitches
had to ringify 2d buffer too
2022-07-09 10:41:59 -07:00
Ivan 'provod' Avdeev
aca2849c5a rt: make kusochki use double-ended buffers 2022-07-09 10:41:59 -07:00
Ivan 'provod' Avdeev
a3ff75b48f vk: draft staging api, use it for textures 2022-04-28 00:16:25 -07:00
Ivan Avdeev
1ad24b657b Merge remote-tracking branch 'origin/vulkan' into better-sampling-passes 2022-01-17 23:04:06 -08:00
Ivan Avdeev
59ec44ca34 rt: align SBT buffer allocations 2022-01-17 22:06:30 -08:00
Ivan 'provod' Avdeev
951d382eb6 vk: improve memory allocation logging
print region names, requirements, etc.
also decrease default vulkan device memory allocation size to 64Mb
decrease max vertices to 512k
2022-01-17 22:06:30 -08:00
Ivan Avdeev
bba8b87ada vk: improve VkDeviceMemory allocation
Allocate device memory in big 128Mb chunks. Sub-allocate buffers, images
and other resources within those chunks.

This uses a dumb grow-only bump allocator for now. Will not work for
more than a couple maps.
2022-01-17 22:06:30 -08:00
Ivan Avdeev
8f7f0d5c8e vk: split devmem into a separate module
prepare for a better device memory allocator
2022-01-17 22:06:30 -08:00
Ivan Avdeev
cd47861d9b rt: start splitting tracer into passes; add primary pass stub
renders only uv gradient as a test

empty rgen, 6900xt: 12.3us, 6/16 vgpr, 20/128 sgpr, 16/16 occupancy
2022-01-07 18:53:23 -08:00
Ivan Avdeev
c5bb450a5a ref_vk: yet anothe var def 2021-06-06 23:14:35 -07:00
Ivan 'provod' Avdeev
6614a6935b add debug names to various objects 2021-05-17 10:36:40 -07:00
Ivan 'provod' Avdeev
be42bd29a5 add ring temp allocator logic 2021-05-03 11:17:01 -07:00
Ivan 'provod' Avdeev
c77f39e353 rtx: fix blas creation validation/memory errors 2021-02-27 15:40:57 -08:00
Ivan Avdeev
5ebe36c54c move buffer allocation to vk_render.c from vk_bruh.c 2021-02-10 10:33:44 -08:00
Ivan Avdeev
5a2ad5965d add depth buffer and map geometry loading
it's not being drawn yet though
2021-01-23 10:54:44 -08:00
Ivan Avdeev
5541bfb541 add loading textures 2021-01-16 15:45:10 -08:00
Ivan Avdeev
48e6765222 draw uv menu 2021-01-16 13:22:31 -08:00