llvm / llvm/offload-test-suite

[SPIRV][Mesa][Nvidia] `reversebits.64.test` crashes the driver

Open
#668 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

driver-bug
Dominant language
C++
Stars
18
Forks
39
Avg merge
2d 18h
Merged PRs (30d)
40

Description

## Assert line:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/231747b7fadf7fdc7d886ba43257afeb07b0620f/src/nouveau/compiler/nak/opt_copy_prop.rs#L291

## Exec line
```
llvm_rel_with_debug_offload/bin/offloader -debug-layer llvm_rel_with_debug_offload/tools/OffloadTest/test/clang-vk/Feature/HLSLLib/Output/reversebits.64.test.tmp/pipeline.yaml lvm_rel_with_debug_offload/tools/OffloadTest/test/clang-vk/Feature/HLSLLib/Output/reversebits.64.test.tmp.o
```

## Result
```
llvm_rel_with_debug_offload/bin/offloader -debug-layer /mnt/DevDrive/projects/llvm_builds/llvm_rel_with_debug_offload/tools/OffloadTest/test/clang-vk/Feature/HLSLLib/Output/reversebits.64.test.tmp/pipeline.yaml /mnt/DevDrive/projects/llvm_builds/llvm_rel_with_debug_offload/tools/OffloadTest/test/clang-vk/Feature/HLSLLib/Output/reversebits.64.test.tmp.o
Using Vulkan API
Physical device created.
Shader module created.
Copy command buffer created.
Memory buffers created.
Executed copy command buffer.
Execute command buffer created.
Descriptors: { type = 7, count = 2 }
Descriptor pool created.
Binding 2 descriptors.
Num Descriptor sets: 1
Updating Descriptor [0] { 0, 0 }
Updating Descriptor [1] { 0, 1 }
WriteDescriptors: 2
Descriptor sets created.
thread '' panicked at ../src/nouveau/compiler/nak/opt_copy_prop.rs:235:13:
assertion failed: src_ssa.comps() == 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
gpu-exec: error: Failed to create pipeline.
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the provided offloader command and the reversebits.64.test artifacts. Start at src/nouveau/compiler/nak/opt_copy_prop.rs around the referenced assertion and compare the reported lines 291 and 235. Done means the test no longer triggers the assertion or fails to create the pipeline.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust
Domain
compilers, computer-graphics, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.