Skip to content

Commit

Permalink
nv2a/vk: Add assert_on_validation_msg option
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Dec 31, 2024
1 parent 6bb96f6 commit a2a193b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config_spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ display:
vulkan:
validation_layers: bool
debug_shaders: bool
assert_on_validation_msg: bool
quality:
surface_scale:
type: integer
Expand Down
2 changes: 1 addition & 1 deletion hw/xbox/nv2a/pgraph/vk/instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(
if ((messageType & VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT) &&
(messageSeverity & (VK_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT |
VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT))) {
assert(false);
assert(!g_config.display.vulkan.assert_on_validation_msg);
}
return VK_FALSE;
}
Expand Down

0 comments on commit a2a193b

Please sign in to comment.