Skip to content

[Fix][WebGPU] Preserve read-only buffer access modes - #20113

Merged
guan404ming merged 1 commit into
apache:mainfrom
akaashrp:fix/webgpu-typed-buffer-access
Aug 11, 2026
Merged

guan404ming merged 1 commit into
apache:mainfrom
akaashrp:fix/webgpu-typed-buffer-access

Conversation

@akaashrp

Copy link
Copy Markdown
Contributor

Preserve read-only WebGPU storage-buffer access modes after typed TIR buffer lowering. Resolve DeclBuffer aliases to their underlying pointer parameters and only emit read_write when the buffer is actually written. This prevents read-only metadata buffers from being misclassified and triggering WGSL uniform-control-flow validation errors around workgroupBarrier.

@akaashrp
akaashrp requested a review from guan404ming August 11, 2026 08:40

@guan404ming guan404ming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, verified in my local machine and work as expected. Thanks!

@guan404ming
guan404ming merged commit 189cef1 into apache:main Aug 11, 2026
8 checks passed
wodylm pushed a commit to wodylm/mcTVM that referenced this pull request Sep 15, 2026
Preserve read-only WebGPU storage-buffer access modes after typed TIR
buffer lowering. Resolve `DeclBuffer` aliases to their underlying
pointer parameters and only emit `read_write` when the buffer is
actually written. This prevents read-only metadata buffers from being
misclassified and triggering WGSL uniform-control-flow validation errors
around `workgroupBarrier`.
tqchen pushed a commit that referenced this pull request Oct 16, 2026
Preserve read-only WebGPU storage-buffer access modes after typed TIR
buffer lowering. Resolve `DeclBuffer` aliases to their underlying
pointer parameters and only emit `read_write` when the buffer is
actually written. This prevents read-only metadata buffers from being
misclassified and triggering WGSL uniform-control-flow validation errors
around `workgroupBarrier`.
tqchen pushed a commit that referenced this pull request Oct 18, 2026
Preserve read-only WebGPU storage-buffer access modes after typed TIR
buffer lowering. Resolve `DeclBuffer` aliases to their underlying
pointer parameters and only emit `read_write` when the buffer is
actually written. This prevents read-only metadata buffers from being
misclassified and triggering WGSL uniform-control-flow validation errors
around `workgroupBarrier`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants