[all-commits] [llvm/llvm-project] a94edb: [DXIL][Analysis] Make alignment on StructuredBuffe...

Justin Bogner via All-commits all-commits at lists.llvm.org
Mon Jul 29 14:41:36 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a94edb6b8e321a46fe429934236aaa4e2e9fb97f
      https://github.com/llvm/llvm-project/commit/a94edb6b8e321a46fe429934236aaa4e2e9fb97f
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-07-29 (Mon, 29 Jul 2024)

  Changed paths:
    M llvm/include/llvm/Analysis/DXILResource.h
    M llvm/lib/Analysis/DXILResource.cpp
    M llvm/unittests/Analysis/DXILResourceTest.cpp

  Log Message:
  -----------
  [DXIL][Analysis] Make alignment on StructuredBuffer optional

HLSL allows StructuredBuffer<> to be defined with scalar or
up-to-4-element vectors as well as with structs, but when doing so
`dxc` doesn't set the alignment. Emulate this.

Pull Request: https://github.com/llvm/llvm-project/pull/100697



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list