Skip to content

Sync upstream - #5

Merged
csteinberg-samsung merged 21 commits into
mainfrom
sync-upstream
Nov 11, 2026
Merged

csteinberg-samsung merged 21 commits into
mainfrom
sync-upstream

Conversation

@csteinberg-samsung

Copy link
Copy Markdown

Picks up new changes in LunarG/VulkanTools upstream resolving a merge conflict in handling of layer dispatch table re-initialization.

Merge Result: initInstanceTable and initDeviceTable now use upstream's unique_ptr storage. They allocate only when the map slot is empty, then always re-run vkuInit*DispatchTable, so a stale entry is re-initialised instead of being returned as-is.

Tail lines: I removed upstream's unconditional table = std::make_unique<...>() lines that sat after each conflict block. Left in, they would have replaced the entry on every call.

Resolves a minor redefinition warning/error when building with BUILD_WERROR=ON

christophe-lunarg and others added 21 commits October 28, 2026 19:52
Updated SettingsTreeManager::RefreshItem to synchronize the QTreeWidgetItem's expanded state with the underlying Parameter data when resetting settings.
GTest::gtest_main already links GTest::gtest, so libgtest.a appeared
twice on the link line, triggering Apple ld duplicate library warnings.
Search the layer presets before the default preset so that when the
default values match a layer preset, such as the validation layer
"Core Validation" preset, it is displayed instead of
"User-Defined Settings".
The 'layers' command parser didn't handle COMMAND_LAYERS_VERBOSE, so
'--list-verbose' fell through to the invalid argument error. Also fix
the '--list-version' typo in the 'layers' help.

Remove 'layers --path', which was equally broken and only duplicated
'--list-verbose' without printing any path, and the '-lv' alias.
List each location Vulkan Configurator searches for layer manifests,
grouped by source in search order, with the layers and their versions
found in each. Empty groups are reported as 'None'.

Move the search locations construction out of LoadAllInstalledLayers()
into LayerManager::BuildLayersSearchPaths() so '--path' prints exactly
what is searched.
When VULKAN_SDK was not set, the SDK explicit layers path resolved to
'/share/vulkan/explicit_layer.d' ('/Bin' on Windows) at the filesystem
root. Vulkan Configurator searched it for layers and tried to create it.

Return an empty path when VULKAN_SDK is not set and skip it when
building the layers search locations.
- Enable layer manifest validation by default
- Show the invalid layer manifest message box on each launch until
  "Do not show again" is checked for that manifest
- Report the number of layer manifests failing the schema validation
  when reloading layers
Change-Id: I57c6148b621f339a0a025971aa83eadd2658d7d9
Replace the window title text with an overlay drawn into each presented
image. It shows the frame rate, frame time (average, min and max) and
frame number, and works without a window title, so the layer now builds
and runs on Windows, Linux (X11 and Wayland), macOS, iOS and Android.

The overlay is drawn on the presenting queue right before the present,
and follows the swapchain's pre-rotation and color space. New settings
pick the corner, scale and update interval, hide any of the lines, and
print why the overlay isn't drawn on a swapchain (log_warnings).

The overlay shaders are compiled to SPIR-V ahead of time.
monitor_overlay_shaders.h is generated by
scripts/generate_monitor_shaders.py

Everything except the exported entry points is in a static library,
VkLayer_monitor_core, which the new unit tests in tests/monitor link.
They don't need a Vulkan driver, so they also run on GitHub CI.

Also:
- Build the monitor layer on every platform and simplify the per-platform
  CMake options
- Replace new/delete in screenshot and vk_layer_table with unique_ptr,
  and remove unused GetLayerDataPtr and GetAbsolutePath

Closes LunarG#1590
Closes LunarG#984
Closes LunarG#874
Closes LunarG#130
Closes LunarG#129
- Present the app's frame without the overlay whenever the overlay
  submit fails, not only when it runs out of memory, so the driver
  still reports the error and fills in pResults
- Destroy a swapchain's overlay semaphores and views after the
  swapchain, since a present may still be waiting on them until then
- Compile code that links VkLayer_monitor_core with the layer's
  VK_USE_PLATFORM_* definitions, so the unit tests see the same
  dispatch table layout as the layer
- Fix a signed/unsigned conversion warning in GlyphIndex
- Read pNext chains without accessing structs through VkBaseInStructure,
  which broke C++'s aliasing rules, in the present rewrite and in
  vk_layer_table's get_chain_info and get_dispatch_key
- Drop the window title sentence from the docs
Resolves build failures when building with BUILD_WERROR=ON

@wpaul-samsung wpaul-samsung left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude recommends:

Merge it with "Create a merge commit", not squash or rebase. Squashing an upstream sync loses the link to the upstream commits, so the next sync would hit these same conflicts again.

@csteinberg-samsung
csteinberg-samsung merged commit 10cab58 into main Nov 11, 2026
16 checks passed
@csteinberg-samsung
csteinberg-samsung deleted the sync-upstream branch November 11, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants