Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2,700
    • Issues 2,700
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 911
    • Merge requests 911
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mesa
  • mesamesa
  • Issues
  • #4107
Closed
Open
Created Jan 16, 2021 by Sebastian Parborg@darkdefende

[AMDGPU][bisected] LLVM commit breaks shader compilation leading to severe performance issues in blender

System information

  • OS: Gentoo Linux
  • GPU: Radeon Pro WX 9100
  • Kernel version: 5.10.4-gentoo
  • Mesa version: Mesa 21.1.0-devel (git-68a785e6)
  • Xserver version (if applicable): 1.20.99.1
  • Desktop manager and compositor: SwayWM (Wayland)

Describe the issue

When opening Blender (tried versions 2.83, 2.9x, and git master) the following is printed to the terminal:

LLVM triggered Diagnostic Handler: Illegal instruction detected: VOP* instruction violates constant bus restriction
renamable $vgpr2 = V_CNDMASK_B32_e32 32768, killed $vgpr2, implicit killed $vcc, implicit $exec
LLVM failed to compile shader
radeonsi: can't compile a main shader part

Which sees like a quite bad error. However it is not yet clear that you are impeded by this until you add a Grease Pencil object to the scene.

  1. Open Blender
  2. Delete the default cube from the scene (press the Delete or X key)
  3. Add a GP object (shift + a -> Grease Pencil -> Monkey)
  4. Now as long as the added GP object is select the error message I posted before is spammed to the terminal and the performance is totally unusable. The selection outline is not rendered either.

Regression

I've bisected this down the the llvm commit: 0045786f146e78afee49eee053dc29ebc842fee1 ([AMDGPU] Select s_cselect)

Now I know this is not a Mesa issue specifically, but I didn't find where to file AMDGPU llvm issues. So I hope filing it here is fine.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking