Skip to content

fix(vulkan): reject pipelines without layouts#257

Open
besmpl wants to merge 1 commit into
gogpu:mainfrom
besmpl:codex/upstream-vulkan-layout
Open

fix(vulkan): reject pipelines without layouts#257
besmpl wants to merge 1 commit into
gogpu:mainfrom
besmpl:codex/upstream-vulkan-layout

Conversation

@besmpl

@besmpl besmpl commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Reject nil Vulkan render and compute pipeline layouts before building native pipeline descriptors. The native HAL does not derive automatic layouts, so forwarding VK_NULL_HANDLE is invalid and can crash drivers rather than return a VkResult.

This extracts the independent Vulkan correctness fix from #253 and closes the same pre-FFI hazard for both pipeline types. It contains no prepared-indexed, MDI, Hearth, or module-path changes.

Verification

  • go test ./hal/vulkan
  • GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go test -c -o /tmp/wgpu-vulkan-linux-amd64.test ./hal/vulkan
  • git diff --check

@besmpl besmpl requested a review from kolkov as a code owner July 14, 2026 12:22
@besmpl besmpl force-pushed the codex/upstream-vulkan-layout branch from 58e5fe2 to c59271f Compare July 14, 2026 12:29
@besmpl besmpl force-pushed the codex/upstream-vulkan-layout branch from c59271f to 2209496 Compare July 14, 2026 12:29
@besmpl besmpl changed the title fix(vulkan): reject render pipelines without layout fix(vulkan): reject pipelines without layouts Jul 14, 2026
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.

1 participant