vmw_subres_dirty_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vmw_subres_dirty_add β€” the kernel API manual, bestie edition ✨

Okay so bestie, we're deep in the Kernel API Manual today and the function on the docket is vmw_subres_dirty_add(9). Yes it's a mouthful, no you're not gonna fumble it β€” we're gonna get through this together 🫢


✨ NAME ✨

vmw_subres_dirty_add β€” literally just adds a dirty region to a subresource, that's the whole gig πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

void vmw_subres_dirty_add (struct vmw_surface_dirty *dirty , const
struct vmw_surface_loc *loc_start , const struct vmw_surface_loc
*loc_end );

πŸŽ€ ARGUMENTS πŸŽ€

  • dirty β€” the surface's dirty tracker. This is the main character, the one actually keeping receipts πŸ—’οΈ
  • loc_start β€” the location that corresponds to the start of the region. Where the region begins, iykyk.
  • loc_end β€” the location that corresponds to the end of the region. Where it wraps up ✨

🌸 DESCRIPTION 🌸

So the whole vibe here is that we're assuming loc_start and loc_end represent a sequential range of backing store memory. Like, in order, one after the other, no chaos πŸ’…

And because of that assumption, two things follow:

  • If the region spans multiple lines, then it doesn't matter what the x coordinate is β€” the full lines get dirtied. Partial lines? Not today, bestie.
  • Correspondingly, if the region spans multiple z slices, then you get full z slices dirtied rather than partial ones. Whole slices only, periodt πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file is ./drivers/gpu/drm/vmwgfx/vmwgfx_surface.c and here's the whole extended friend group you should also go say hi to πŸ’œ


ngl bestie, if you ever find yourself dirtying a partial line or a partial z slice in here, that's not the vibe this function is giving. Full lines, full slices, that's the assignment πŸ’€

And that's the page!! πŸŽ€ This one lives under ./drivers/gpu/drm/vmwgfx, dated October 2026, and it's filed as vmw_subres_dirty_add(9) β€” go forth and dirty those regions correctly, icon πŸ‘‘πŸ’–

πŸ“¦ where this page comes from