Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layer: Fix 32-bit layer crash + identify layer type in logging #1737

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matte-schwartz
Copy link

Some fprintf pointers added in "layer: Fix oldSwapchain when going in/out of XWayland bypassing" will crash when executed in the 32-bit WSI layer.

GCC also warns about the pointer usage when compiling the 32-bit layer: "warning: format ‘%p’ expects argument of type ‘void*’, but argument 3 has type ‘VkSwapchainKHR’ {aka ‘long long unsigned int’} [-Wformat=]"

To keep it simple, let's just reinterpret_cast the problematic pointers to void*.

Closes: #1718
Closes: #1736

Some fprintf pointers added in "layer: Fix oldSwapchain when going in/out
of XWayland bypassing" will crash when executed in the 32-bit WSI layer.

GCC also warns about the pointer usage when compiling the 32-bit layer:
"warning: format ‘%p’ expects argument of type ‘void*’, but argument 3
has type ‘VkSwapchainKHR’ {aka ‘long long unsigned int’} [-Wformat=]"

To keep it simple, let's just reinterpret_cast the problematic pointers
to void*.

Closes:  ValveSoftware#1718
Closes:  ValveSoftware#1736
@LionHeartP
Copy link

This fixes Half Life 2 for me on gamescope session.

Leave some breadcrumbs to figure out whether the logs we're getting come
from the 32-bit or 64-bit layer. ARM/aarch64 and FreeBSD logs will appear
without a bit suffix.
@matte-schwartz matte-schwartz changed the title layer: Fix 32-bit layer crash layer: Fix 32-bit layer crash + identify layer type in logging Feb 2, 2025
@K900
Copy link

K900 commented Feb 4, 2025

T-b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants