[llvm] [AMDGPU][GFX12] Restrict scalar subword loads to PAL (PR #117576)

Juan Manuel Martinez CaamaƱo via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 07:09:29 PST 2024


jmmartinez wrote:

> > A) The driver always rounds buffer sizes to a multiple of 4 bytes (this applies to Vulkan)
> 
> User code can also synthesize buffers wherever they like

When you say user code you mean users writing custom shaders? Or users of OCL/HIP?

And I guess there is no way of distinguishing one kind of buffers from the other. So in the general case this workaround would never work (unless the users commit to aligning their buffers, which I guess they won't).

https://github.com/llvm/llvm-project/pull/117576


More information about the llvm-commits mailing list