Vulkan: Render graph clear attachments #121073

Merged
Jeroen Bakker merged 19 commits from Jeroen-Bakker/blender:vulkan/render-graph-clear-attachments into main 2024-05-10 15:40:13 +02:00
Member

Adds support for clear attachments to the render graph.
Clearing attachments require that the command buffer is
being set for rendering (vkCmdBeginRendering).

What works

  • Clear attachments are working with dynamic rendering and the render graph
  • GPUVulkanTest.framebuffer_clear_color_single_attachment
  • GPUVulkanTest.framebuffer_clear_color_multiple_attachments
  • GPUVulkanTest.framebuffer_clear_multiple_color_multiple_attachments
  • GPUVulkanTest.framebuffer_scissor_test
  • GPUVulkanTest.framebuffer_clear_depth

What still needs to be addressed

When a command buffer is rendering it cannot do any pipeline
barriers. For clearing attachments this isn't needed, but when
we address drawing we might need to register drawing resource
dependencies to the dependency list of the begin rendering node.
This will be solved when drawing will be implemented. [#121648]

The begin rendering node is large as it has to store data for
framebuffers with 8 color attachments as well. This might
become an overhead and we could solve this by splicing the
data of larger nodes into 2 lists. This will be addressed
after we are able to draw a screen so we can collect data
on this topic. [#121649]

Adds support for clear attachments to the render graph. Clearing attachments require that the command buffer is being set for rendering (vkCmdBeginRendering). **What works** - Clear attachments are working with dynamic rendering and the render graph - `GPUVulkanTest.framebuffer_clear_color_single_attachment` - `GPUVulkanTest.framebuffer_clear_color_multiple_attachments` - `GPUVulkanTest.framebuffer_clear_multiple_color_multiple_attachments` - `GPUVulkanTest.framebuffer_scissor_test` - `GPUVulkanTest.framebuffer_clear_depth` **What still needs to be addressed** When a command buffer is rendering it cannot do any pipeline barriers. For clearing attachments this isn't needed, but when we address drawing we might need to register drawing resource dependencies to the dependency list of the begin rendering node. This will be solved when drawing will be implemented. [#121648] The begin rendering node is large as it has to store data for framebuffers with 8 color attachments as well. This might become an overhead and we could solve this by splicing the data of larger nodes into 2 lists. This will be addressed after we are able to draw a screen so we can collect data on this topic. [#121649]
Jeroen Bakker added this to the 4.2 LTS milestone 2024-04-25 14:37:51 +02:00
Jeroen Bakker added the
Interest
Vulkan
label 2024-04-25 14:37:51 +02:00
Jeroen Bakker self-assigned this 2024-04-25 14:37:51 +02:00
Jeroen Bakker added 1 commit 2024-04-25 14:38:00 +02:00
Jeroen Bakker added this to the EEVEE & Viewport project 2024-04-25 14:38:07 +02:00
Jeroen Bakker added 1 commit 2024-04-25 14:46:48 +02:00
Jeroen Bakker added 2 commits 2024-04-26 15:05:29 +02:00
Jeroen Bakker added 1 commit 2024-05-07 07:50:47 +02:00
Jeroen Bakker added 3 commits 2024-05-07 15:42:35 +02:00
Jeroen Bakker added 1 commit 2024-05-10 09:16:55 +02:00
Jeroen Bakker added 2 commits 2024-05-10 10:33:57 +02:00
Jeroen Bakker changed title from WIP: Vulkan: Render graph clear attachments to Vulkan: Render graph clear attachments 2024-05-10 10:42:32 +02:00
Jeroen Bakker added 2 commits 2024-05-10 11:26:20 +02:00
Jeroen Bakker added 1 commit 2024-05-10 11:33:06 +02:00
Jeroen Bakker added 1 commit 2024-05-10 11:41:15 +02: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
9a6809546f
Cleanup
Author
Member

@blender-bot build

@blender-bot build
Jeroen Bakker added 1 commit 2024-05-10 12:14:46 +02: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
ce060a0d50
Fix windows tests
Author
Member

@blender-bot build

@blender-bot build
Jeroen Bakker added 1 commit 2024-05-10 14:53:03 +02:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-windows-arm64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
6e191243c9
Missing to_string
Author
Member

@blender-bot build windows

@blender-bot build windows
Jeroen Bakker added 1 commit 2024-05-10 15:18:19 +02:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
c1b4602a81
clear memory when constructing.
Author
Member

@blender-bot build windows-amd64

@blender-bot build windows-amd64
Jeroen Bakker added 1 commit 2024-05-10 15:38:56 +02:00
Jeroen Bakker merged commit 40f2df1a81 into main 2024-05-10 15:40:13 +02:00
Jeroen Bakker deleted branch vulkan/render-graph-clear-attachments 2024-05-10 15:40:17 +02: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 Assignees
1 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#121073
No description provided.