Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

[SPIR-V] vk::BufferPointer<T, Alignment>: stores ignore Alignment #9055

Open

Description

@Erfan-Ahmadi

Version: DXC (trunk) on godbolt
Flags: -spirv -T cs_6_8 -E main -HV 202x -fspv-target-env=vulkan1.3

[[vk::binding(0,0)]] RWStructuredBuffer<uint32_t> buf;

struct PushData { uint64_t addr; };
[[vk::push_constant]] PushData pc;

[numthreads(64,1,1)]
void main(uint32_t gi : SV_GroupIndex)
{
    vk::BufferPointer<uint32_t, 16> p = vk::BufferPointer<uint32_t, 16>(pc.addr);
    uint32_t v = p.Get();      // OpLoad ... Aligned 16
    p.Get() = v + 1u;          // OpStore ... Aligned 4  (expected 16)
    buf[gi] = v;
}

godbolt link: https://godbolt.org/z/vPvxeW17h

Expected: OpStore %ptr %val Aligned 16.
Actual:

%26 = OpLoad %uint %25 Aligned 16
      OpStore %25 %27 Aligned 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triagespirvWork related to SPIR-V

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions