mareko added a comment. For shader type = VS, please don't take the LDS size into account. The LDS size is unknown at compile time and it's almost always much less than what's declared. https://reviews.llvm.org/D23688