I'm trying to do register analysis on my pre-built spirv shader (we have our own tooling). this shader requires scalar_block_layout extension which we ensure of at runtime.
but when I try to build it using RGA. it gives me an error:
Error: ERROR: Result::ErrorInvalidShader: Failed to validate SPIR-V:
error: 684: Structure id 131 decorated as Block for variable in PhysicalStorageBuffer storage class must follow standard storage buffer layout rules: member 4 at offset 140 is not aligned to 16
This is may be allowed if you enable the VK_KHR_relaxed_block_layout extension (or use the --relax-block-layout command line flag)
It's simply because the spirv-validator or spv-opt requires the --scalar-block-layout to be passed to the tool. and currently I've found no way to add that flag to rga to make my build successfull.
Please advise me on how to overcome this simple issue. I'd rather not fork this repo just to add a simple flag and build it myself.
I'm trying to do register analysis on my pre-built spirv shader (we have our own tooling). this shader requires scalar_block_layout extension which we ensure of at runtime.
but when I try to build it using RGA. it gives me an error:
It's simply because the spirv-validator or spv-opt requires the
--scalar-block-layoutto be passed to the tool. and currently I've found no way to add that flag to rga to make my build successfull.Please advise me on how to overcome this simple issue. I'd rather not fork this repo just to add a simple flag and build it myself.