Cycles: Cleanup: Move SVM execution state into a helper struct #110443

Open
Lukas Stockner wants to merge 1 commits from LukasStockner/blender:svm-state into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

This packs the SVM stack, current node offset and closure weight into one struct, and just passes that to each SVM node implementation.

This way we don't have to pass the offset back and forth all over the place, and adding additional state (e.g. for layering in the future) becomes easier.

This packs the SVM stack, current node offset and closure weight into one struct, and just passes that to each SVM node implementation. This way we don't have to pass the offset back and forth all over the place, and adding additional state (e.g. for layering in the future) becomes easier.
Lukas Stockner added 1 commit 2023-07-25 04:00:21 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
2931602812
Cycles: Cleanup: Move SVM execution state into a helper struct
This way we don't have to pass the offset all over the place, and
adding additional state (e.g. for layering in the future) becomes
easier.
Lukas Stockner added this to the Render & Cycles project 2023-07-25 04:00:27 +02:00
Lukas Stockner added the
Module
Render & Cycles
label 2023-07-25 04:00:33 +02:00
Lukas Stockner requested review from Brecht Van Lommel 2023-07-25 04:00:38 +02:00

This seems reasonable, though perhaps there might be a performance impact from this. In theory it should be fine as compiler should not need to pass around more state or do more pointer indirections than before.

@blender-bot package

This seems reasonable, though perhaps there might be a performance impact from this. In theory it should be fine as compiler should not need to pass around more state or do more pointer indirections than before. @blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR110443) when ready.
Brecht Van Lommel approved these changes 2023-07-25 20:09:42 +02:00
Brecht Van Lommel left a comment
Owner

Accepting assuming the build passes.

Accepting assuming the build passes.

Wondering what happened with this patch? @LukasStockner Is this this valid, or have there been performance concerns?

Wondering what happened with this patch? @LukasStockner Is this this valid, or have there been performance concerns?
All checks were successful
buildbot/vexp-code-patch-coordinator Build done.
This pull request has changes conflicting with the target branch.
  • intern/cycles/kernel/svm/camera.h
  • intern/cycles/kernel/svm/closure.h
  • intern/cycles/kernel/svm/displace.h
  • intern/cycles/kernel/svm/gamma.h
  • intern/cycles/kernel/svm/invert.h
  • intern/cycles/kernel/svm/musgrave.h
  • intern/cycles/kernel/svm/noisetex.h
  • intern/cycles/kernel/svm/normal.h
  • intern/cycles/kernel/svm/sepcomb_color.h
  • intern/cycles/kernel/svm/sepcomb_hsv.h

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u svm-state:LukasStockner-svm-state
git checkout LukasStockner-svm-state
Sign in to join this conversation.
No reviewers
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 Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#110443
No description provided.