OptiX kernels fail to load when Ambient Occlusion node is used #92363
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#92363
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.13
Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-10-19 23:31, hash:
ef9269bd62
Worked: 3.0.0 Alpha, branch: master, commit date: 2021-10-18 21:38, hash:
d7b231baa8
Short description of error
I have "Cycles Render Devices" set to OptiX. When I switch to rendered mode kernels start to load but fail with this message:
The culprit seems to be the Ambient Occlusion node as other scenes load properly. Interestingly, simply detaching AO node from shader will not help. I need to completely remove AO node from shader window, save and reload.
Switching to CUDA in settings fixes the problem. Note that I don't have an RTX card.
The same file works with yesterday's build, so the problem must have been introduced recently.
Exact steps for others to reproduce the error
Open attached blend file and switch to rendered mode.
optix_fail.blend
Added subscriber: @MarcinTwarowski
Added subscribers: @pmoursnv, @brecht
Changed status from 'Needs Triage' to: 'Confirmed'
It doesn't happen for me with an RTX card on Linux, but will mark as confirmed anyway since I have no doubt it's a real bug we should fix.
Presumably
943e73b
,d06828f
orfd77a28
is triggering this internal compiler error.CC @pmoursnv.
This is a driver bug, which can only happen with the current r495 release, so 496.13 on Windows or 495.29.05 on Linux. Fix is in the works.
Added subscriber: @SteffenD
@pmoursnv, thanks, depending on how soon this is fixed we may still want to work around it in Cycles though.
Right. Bug is that the compiler does not handle the
sub.s16
PTX instruction.add.s16
,neg.s16
orsub.s32
etc. work however, so technically just need to change the code so it uses those instead.Fortunately
sub.s16
only occurs in one place in Cycles (in intergator_shade_surface.h dues to a substraction withuint16_t
values). Unfortunately it's rather difficult to convince the optimizer to not use it (tried casting, moving code around, and so on to no success) ... Some inline PTX does the job though:This issue was referenced by blender/cycles@f72bf84eb6
This issue was referenced by
be558d2d97
Ah, thanks for figuring that out. I think I can refactor the logic so we don't need to use a subtraction at all, and avoid the inline PTX.
Changed status from 'Confirmed' to: 'Resolved'