STRUCT DM_TEST_COLOROP_FIXTURE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dm_test_colorop_fixture(9) β€” Kernel API Manual

okay so bestie, we're looking at struct dm_test_colorop_fixture from section 9 of the Kernel API Manual β€” yes, that's the kernel API one, not a shell command πŸ’–. She's a little bucket of shared state that gets passed around the plane colorop walk tests, and honestly? she's doing a lot of carrying. Let's get into it ✨


✨ NAME ✨

struct dm_test_colorop_fixture β€” shared state for plane colorop walk tests</p> πŸŽ€

Like, the whole point is that all the test helpers can reach into the same little bundle of pointers instead of each one rebuilding the universe from scratch. Iconic behavior honestly.


🌸 SYNOPSIS 🌸

struct dm_test_colorop_fixture {
    struct amdgpu_device *adev;
    struct drm_atomic_commit *state;
    struct drm_colorop *colorop;
    struct drm_colorop_state *colorop_state;
    struct drm_plane_state *plane_state;
    struct dc_plane_state *dc_plane_state;
 };

Six pointers, one vibe. No cap πŸ”₯


πŸ¦‹ Members πŸ¦‹

okay so every single field, explained with love:

  • adev β€” the backing amdgpu device, and yes she provides a real DRM device. not a fake one. the real deal πŸ’œ
  • state β€” a fabricated atomic state that has exactly one colorop slot in it. one slot. that's it. that's the whole state.
  • colorop β€” the colorop under test πŸ‘‘ main character energy fr fr
  • colorop_state β€” the new state that's attached to colorop 🌸
  • plane_state β€” the plane state whose ->state points at state 🫢 (yes, that state up there. the fabricated one. it all connects, iykyk)
  • dc_plane_state β€” the DC plane state that gets written by the helpers πŸ’€ the helpers are the ones doing the writing, just so we're clear
ngl bestie, half of these are just pointers to pointers to state, but that's the assignment and she ate πŸ’…

πŸŽ€ SEE ALSO πŸŽ€

first up, the actual kernel file where this lives β€” go look, she's real:

  • Kernel file ./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_color_test.c

and then. and then the list. bestie. the list is LONG and every single one is required reading, so buckle up πŸ“:

see? told you. every single one πŸ’€ but like, in a cute way.


mwah πŸ’‹ that's the whole page, bestie. this came from ./drivers/gpu/drm/amd/display/... and it's dated October 2026, landing in the struct dm_te...orop_fixture(9) slot at the bottom of the page like always. go forth and test those colorops, you absolute legend πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from