Fullframe compositor: unify size inference with GPU compositor part 2 #115733

Merged
Habib Gahbiche merged 6 commits from zazizizou/blender:com-unify-size-inference-complex-nodes into main 2023-12-29 18:10:05 +01:00
Member

Followup to #114755. Initialize operation results explicitly if the input is constant. This patch unifies the size inference behavior of the following nodes/operation:

  • Flip node
  • Kuwahara (classic)
  • Lens distortion
  • Tonemap node
Followup to #114755. Initialize operation results explicitly if the input is constant. This patch unifies the size inference behavior of the following nodes/operation: - Flip node - Kuwahara (classic) - Lens distortion - Tonemap node
Habib Gahbiche added 2 commits 2023-12-03 22:05:43 +01:00
Author
Member

@blender-bot build

@blender-bot build
Habib Gahbiche added this to the Compositing project 2023-12-03 22:07:35 +01:00
Habib Gahbiche requested review from Omar Emara 2023-12-03 22:38:35 +01:00
Member

Why do we need update_memory_buffer_started? Isn't a single value input guaranteed to execute as a single work package?

Why do we need `update_memory_buffer_started`? Isn't a single value input guaranteed to execute as a single work package?
Author
Member

My understanding is no, because constant folding changes inputs only. The output buffer still has the same size as render size, so update_memory_buffer_partial gets called multiple times for a single element input.

My understanding is no, because constant folding changes inputs only. The output buffer still has the same size as render size, so `update_memory_buffer_partial` gets called multiple times for a single element input.
Member

I tried doing it in update_memory_buffer_partial instead of update_memory_buffer_started and it seems to work.

The constant folder initializes first_elem_area_ to a 1x1 area as can be seen in the call: BLI_rcti_init(&first_elem_area_, 0, 1, 0, 1);. So I would expect it to work.

I am interested in doing it like this for clarity and avoiding potential bugs.

I tried doing it in `update_memory_buffer_partial` instead of `update_memory_buffer_started` and it seems to work. The constant folder initializes `first_elem_area_` to a `1x1` area as can be seen in the call: `BLI_rcti_init(&first_elem_area_, 0, 1, 0, 1);`. So I would expect it to work. I am interested in doing it like this for clarity and avoiding potential bugs.
Author
Member

Sure, if it's more clear to you I can move the code to update_memory_partial

Sure, if it's more clear to you I can move the code to `update_memory_partial`
Habib Gahbiche added 2 commits 2023-12-17 12:30:11 +01:00
Habib Gahbiche added 1 commit 2023-12-17 12:47:30 +01:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
8c87984cd1
Cleanup: make format
Author
Member

@blender-bot build

@blender-bot build
Omar Emara approved these changes 2023-12-26 11:42:01 +01:00
Habib Gahbiche added 1 commit 2023-12-29 18:05:06 +01:00
Habib Gahbiche merged commit 898c44bca1 into main 2023-12-29 18:10:05 +01:00
Habib Gahbiche deleted branch com-unify-size-inference-complex-nodes 2023-12-29 18:10:08 +01:00
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 project
No Assignees
2 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#115733
No description provided.