dm_test_help...wport_reject(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dm_test_help...wport_reject β€” Kernel API Manual πŸŽ€

okay so real talk, the full name of this page is dm_test_help...wport_reject(9) (yes it's abbreviated, yes it's a little mysterious, it's giving "name too long for the header, we tried our best πŸ’€") and it lives in the Kernel API Manual. The star of the show inside is dm_test_helper_check_state_viewport_reject and bestie, it does exactly one job and it does it slayfully.


✨ NAME ✨

dm_test_helper_check_state_viewport_reject β€” Verify viewport outside screen rejects state.

Like, literally: check that the plane state gets rejected when the viewport is outside the display bounds. Nothing more, nothing less. Iconic minimalism. πŸ’…


🌸 SYNOPSIS 🌸

void dm_test_helper_check_state_viewport_reject (struct kunit *test );

That's it. That's the whole signature. One param, no return value (void), pure vibes. πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” KUnit test context. This is the little test-harness bestie that carries everything the test framework needs to know about the run. Hand it over and let it do its thing. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

So the whole point of this test helper: you know how if you shove a plane's viewport somewhere off the edge of the display it shouldn't just... work? Like, that's not allowed, that's illegal, that's out of bounds literally?

Right. So this helper verifies that the plane state is rejected when the viewport is outside display bounds. The state should get rejected, no cap. If it doesn't, your test is gonna have a bad time and honestly so will you 😭. It's a validation vibe check for the DRM/AMD display plane code, and it ate. ⭐


πŸ¦‹ SEE ALSO πŸ¦‹

πŸ“ Kernel file

./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_plane_test.c

πŸ‘― the whole friend group

like, that's the whole plane-testing squad right there, and they all said "no viewport left behind" 🌈


and that's the page, bestie ✨ it ships out of ./drivers/gpu/drm/amd/display/... and it's dated October 2026, so mark your calendars and stan responsibly πŸ’œπŸ‘‘


πŸ“¦ where this page comes from