WIP: Vulkan: DebuggingTools : Add messenger utilities #107409

Closed
Kazashi Yoshioka wants to merge 2 commits from (deleted):vk_debug_messenger into main

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

This PR is a split off part of this PR.It mainly provides utilities for using Messenger from an extension called VkDebugUtils.

Problem Description:

Blender is currently targeting Vulkan version 1.2.
However, if we don't make vulkan's dynamic function group a side-by-side configuration, etc., it will load the default Vulkan(dll or so) on the user's PC.
What kind of problems does this cause?

First, VkDebugUtils is an extension included in VKValidationLayer, but we can use this messenger function without VKValidationLayer.
And when we load the VKValidationLayer, it adds a lot of validation items and a lot of messenger handling.

In other words, basically version differences do not cause malfunctions, but when VkValidationLayer is involved, there are more differences in validation details for each version.

Description of the proposed solution:

To alleviate those worries, I think it's better to check the version.

Problem Description:

a Message has an Id.
Since the Id is an int32, it can also be used when excluding messages.
Should it match the OpenGL implementation?

Description of the proposed solution:

Add the ID of the message to the exclusion set when entering the scope of the exclusion message. Remove id when leaving scope.

### This PR is a split off part of [this PR](https://projects.blender.org/blender/blender/pulls/105484).It mainly provides utilities for using Messenger from an extension called VkDebugUtils. > ### Problem Description: > Blender is currently targeting Vulkan version 1.2. However, if we don't make vulkan's dynamic function group a side-by-side configuration, etc., it will load the default Vulkan(dll or so) on the user's PC. > What kind of problems does this cause? >> First, VkDebugUtils is an extension included in VKValidationLayer, but we can use this messenger function without VKValidationLayer. >> And when we load the VKValidationLayer, it adds a lot of validation items and a lot of messenger handling. >>> In other words, basically version differences do not cause malfunctions, but when VkValidationLayer is involved, there are more differences in validation details for each version. > ### Description of the proposed solution: >> To alleviate those worries, I think it's better to check the version. > ### Problem Description: > a Message has an Id. > Since the Id is an int32, it can also be used when excluding messages. > Should it match the OpenGL implementation? > ### Description of the proposed solution: > Add the ID of the message to the exclusion set when entering the scope of the exclusion message. Remove id when leaving scope.
Kazashi Yoshioka added 2 commits 2023-04-27 19:32:35 +02:00
a4bb6974ac Vulkan: Debugging Tools
Add Messenger from the functions of VkDebugUtils.
a90a152868 Vulkan: Debugging Tools
Add Messenger from the functions of VkDebugUtils.
Kazashi Yoshioka requested review from Jeroen Bakker 2023-04-27 19:37:08 +02:00
Kazashi Yoshioka changed title from Vulkan: DebuggingTools : Add messenger utilities to WIP: Vulkan: DebuggingTools : Add messenger utilities 2023-05-01 21:12:56 +02:00
Author
Contributor

Given the ContextVK relationship, should this DebugUtils be a member of VKDevice?

Given the ContextVK relationship, should this DebugUtils be a member of VKDevice?
Member

I will add the DeviceVK class shortly to main and move the current debug classes to the right location.

I will add the DeviceVK class shortly to main and move the current debug classes to the right location.
Author
Contributor

This PR will be done here, so it will be closed.

This PR will be done [here](https://projects.blender.org/blender/blender/pulls/107635), so it will be closed.
Kazashi Yoshioka closed this pull request 2023-05-05 00:08:45 +02:00
Kazashi Yoshioka deleted branch vk_debug_messenger 2023-05-05 00:09:01 +02:00

Pull request closed

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#107409
No description provided.