Skip to content

Commit

Permalink
Merge branch 'master' into steam_notification_crash_fix_attempt_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkautarch authored Jan 23, 2025
2 parents ec07763 + ef1e8db commit 9be4be5
Show file tree
Hide file tree
Showing 23 changed files with 2,938 additions and 1,574 deletions.
9 changes: 8 additions & 1 deletion layer/VkLayer_FROG_gamescope_wsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ namespace GamescopeWSILayer {
struct GamescopeInstanceData {
wl_display* display;
uint32_t appId = 0;
std::string engineName;
GamescopeLayerClient::Flags flags = 0;
};
VKROOTS_DEFINE_SYNCHRONIZED_MAP_TYPE(GamescopeInstance, VkInstance);
Expand Down Expand Up @@ -616,9 +617,14 @@ namespace GamescopeWSILayer {
{
uint32_t appId = clientAppId();

std::string engineName;
if (pCreateInfo->pApplicationInfo && pCreateInfo->pApplicationInfo->pEngineName)
engineName = pCreateInfo->pApplicationInfo->pEngineName;

auto state = GamescopeInstance::create(*pInstance, GamescopeInstanceData {
.display = display,
.appId = appId,
.engineName = engineName,
.flags = defaultLayerClientFlags(pCreateInfo->pApplicationInfo, appId),
});

Expand Down Expand Up @@ -1251,7 +1257,8 @@ namespace GamescopeWSILayer {
uint32_t(pCreateInfo->imageColorSpace),
uint32_t(pCreateInfo->compositeAlpha),
uint32_t(pCreateInfo->preTransform),
uint32_t(pCreateInfo->clipped));
uint32_t(pCreateInfo->clipped),
gamescopeInstance->engineName.c_str());

return VK_SUCCESS;
}
Expand Down
1 change: 1 addition & 0 deletions protocol/gamescope-swapchain.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<arg name="vk_composite_alpha" type="uint" summary="VkCompositeAlphaFlagBitsKHR of swapchain"/>
<arg name="vk_pre_transform" type="uint" summary="VkSurfaceTransformFlagBitsKHR of swapchain"/>
<arg name="vk_clipped" type="uint" summary="clipped (VkBool32) of swapchain"/>
<arg name="vk_engine_name" type="string" summary="Engine name"/>
</request>

<request name="set_present_mode">
Expand Down
1 change: 1 addition & 0 deletions protocol/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ protocols = [
wl_protocol_dir / 'staging/single-pixel-buffer/single-pixel-buffer-v1.xml',
wl_protocol_dir / 'unstable/pointer-constraints/pointer-constraints-unstable-v1.xml',
wl_protocol_dir / 'unstable/relative-pointer/relative-pointer-unstable-v1.xml',
wl_protocol_dir / 'unstable/primary-selection/primary-selection-unstable-v1.xml',
wl_protocol_dir / 'staging/fractional-scale/fractional-scale-v1.xml',
wl_protocol_dir / 'staging/linux-drm-syncobj/linux-drm-syncobj-v1.xml',

Expand Down
Loading

0 comments on commit 9be4be5

Please sign in to comment.