STRUCT DRM_COLOROP_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct drm_colorop_state β€” the mutable state of a colorop, bestie. Like, the parts that can actually change. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct drm_colorop_state {
    struct drm_colorop *colorop;
    bool bypass;
    enum drm_colorop_curve_1d_type curve_1d_type;
    uint64_t multiplier;
    struct drm_property_blob *data;
    enum drm_colorop_lut1d_interpolation_type lut1d_interpolation;
    enum drm_colorop_lut3d_interpolation_type lut3d_interpolation;
    struct drm_atomic_commit *state;
 };

Look at her. Iconic. Struct with main character energy. πŸ‘‘


πŸ’… Members πŸ’…

Okay so here's the whole cast, one by one, no skips:

  • colorop β€” backpointer to the colorop. That's it, that's the whole vibe. She knows where she came from. 🫢
  • bypass β€” when the property BYPASS exists on this colorop, this stores the requested bypass state: true if the colorop shall be bypassed, false if the colorop is enabled. So like, true = "not me participating today πŸ™ˆ", false = "I'm in, I'm enabled, I'm working". Note the if β€” BYPASS has to actually exist on this colorop for this to be a thing. iykyk.
  • curve_1d_type β€” type of 1D curve. Literally just which flavor of 1D curve, periodt.
  • multiplier β€” multiplier to 'gain' the plane. Format is S31.32 sign-magnitude. Yes, the format matters, don't come at me with some other format, it will not slay. πŸ”₯
  • data β€” the data blob for any TYPE that requires such a blob. The interpretation of the blob is TYPE-specific β€” so like, don't assume, every TYPE reads it its own way, fr fr.

See the drm_colorop_type documentation for how blob is laid out. πŸ‘€ Go read it. It's giving required reading.

  • lut1d_interpolation β€” interpolation for DRM_COLOROP_1D_LUT. The interpolation. For the 1D LUT. Exactly what it says. πŸ’œ
  • lut3d_interpolation β€” interpolation for DRM_COLOROP_3D_LUT. Same energy, but three-dimensional now, which is lowkey a whole moment. ✨
  • state β€” backpointer to the global drm_atomic_commit. The big group chat she belongs to. 🌈

🌸 SEE ALSO 🌸

Go read them all, bestie, they're all connected, it's a whole ecosystem 🧚


Heads up: this page lives in ./include/drm and it's dated October 2026 β€” that's the Kernel API Manual, so you know it's official official, ngl. Ok bye, ily, go write some colorops πŸ’–πŸŽ€
πŸ“¦ where this page comes from