Short:
1. download this vk_spirv_mem.zip
2. open vk_spirv_mem.zip\vk_spirv_mem\shaders\spv\buf.frag.spv in Radeon GPU Analyzer (RGA)
3. look on RAM usage in Windows Task Manager, I have ~5.2Gb RAM usage for 1-2 min time by RGA or VKlauncher
instead of RGA, launch VKlauncher.exe RAM usage will be same, on shader first loading, when it loaded RAM become normal (~30Mb for that app)
Long:
Shader source code in vk_spirv_mem.zip\vk_spirv_mem\shaders\src\Buf0.glsl
This shader based on Shadertoy link few small modifications, original shader(from that shadertoy) use ~3Gb RAM in AMD Vulkan (this shader in OpenGL launcher)
OpenGL on same AMD hardware do no have this problem.(at all, it load/work fine)
Nvidia load this shader fine.(no RAM usage)
OS Windows 10, everything latest (1 week old)
Hardware AMD Vega 8 (Ryzen 3200) (I think it does not matter)
shader compiled with glslangValidator -V100 <files> command, nothing secial
Vulkan code of VKlauncher.exe are valid, and it does not matter because RGA show same result
Solved! Go to Solution.
Ram usage problem Fixed in latest Adrenalin 21.5.1
shaders compiled fine now
problem with executing very large shader still exist(that 55k lines linked above), but maybe it hardware limitation idk
Thanks for your report,
I will try to reproduce this issue.
Update with new shader code:
all linked code on this page do not have any validation errors
Download VK_amd_bug_test_55k_lines.zip
55k lines GLSL code (unroled original shader) that produce 4Mb SPIR-V file
Shader source in shaders/shadertoy/buf0.glsl
work fine:
in Nvidia OpenGL/Vulkan
in AMD in OpenGL
in AMD Vulkan:
used 6Gb ram to "load SPIR-V"
and crashes during execution
shader image is broken(bottom of image are broken)
Ram usage problem Fixed in latest Adrenalin 21.5.1
shaders compiled fine now
problem with executing very large shader still exist(that 55k lines linked above), but maybe it hardware limitation idk