Skip to content

Conversation

@RAOF
Copy link
Contributor

@RAOF RAOF commented Dec 20, 2024

No description provided.

@RAOF RAOF requested a review from a team as a code owner December 20, 2024 06:13
@Saviq Saviq force-pushed the linux-drm-syncobj branch from c5df1e4 to 08d273a Compare December 20, 2024 09:20
@Saviq Saviq changed the base branch from main to refresh-distros December 20, 2024 09:20
@Saviq Saviq force-pushed the linux-drm-syncobj branch from 08d273a to 9239756 Compare December 20, 2024 09:55
Base automatically changed from refresh-distros to main December 20, 2024 10:00
@RAOF RAOF force-pushed the linux-drm-syncobj branch from 9239756 to b45bace Compare June 2, 2025 08:12
RAOF and others added 8 commits June 10, 2025 17:47
…cit-sync on wl_shm buffers.

The only guaranteed-supported buffers are linux-dmabuf buffers. It's easy for Mir to support
wl_shm buffers, too, but maybe other compositors will not support wl_shm here.

Skip all the tests which rely on committing a wl_shm buffer when an `unsupported_buffer` error
is returned
Clients are allowed to make empty or null commits to surfaces
managed by a syncobj (as long as they don't also set syncpoints).
@RAOF RAOF force-pushed the linux-drm-syncobj branch from b479c13 to 2dcc71f Compare June 10, 2025 07:47
Copy link
Contributor

@mattkae mattkae left a comment

Choose a reason for hiding this comment

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

This makes sense by me 👍


namespace
{
class Fd
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: This could be nice to have in its own file for the future

Copy link
Contributor

@AlanGriffiths AlanGriffiths left a comment

Choose a reason for hiding this comment

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

I'd like to avoid tests that sleep, especially for more than a few milliseconds.

Isn't there any scope for client.dispatch_until(...) or similar? Failures might still take a_long_time() but success should be fast.

Comment on lines +582 to +583
// We don't have a way to ensure that WM has settled down, so just wait a little
std::this_thread::sleep_for(1s);
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems a very long time to be sleeping in a test - especially twice. (I'm no fan of sleeping in a test - that way leads to very slow feedback from the tests - imagine if every test case took at least a second...)

Comment on lines +590 to +593
// Again, we don't have a way to ensure that WM has settled down, so just wait a little
std::this_thread::sleep_for(1s);

EXPECT_THAT(surface,IsSurfaceOfSize(new_width, new_height));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Again, we don't have a way to ensure that WM has settled down, so just wait a little
std::this_thread::sleep_for(1s);
EXPECT_THAT(surface,IsSurfaceOfSize(new_width, new_height));
client.dispatch_until([&]()
{
return surface_has_size(surface, new_width, new_height);
});

@AlanGriffiths
Copy link
Contributor

@RAOF ping!

@Saviq
Copy link
Contributor

Saviq commented Dec 17, 2025

Needs work, converting to draft.

@Saviq Saviq marked this pull request as draft December 17, 2025 14:51
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