STRUCT VMW_SURFACE_DIRTY(9)
π struct vmw_surface_dirty(9) π
okay so this is a page straight out of the Kernel API Manual β it's all about struct vmw_surface_dirty, aka the surface dirty-tracker. yes bestie, it tracks dirt. (the graphics kind. chill.) π
β¨ NAME β¨
struct vmw_surface_dirty β surface dirty-tracker, no cap π§
πΈ SYNOPSIS πΈ
struct vmw_surface_dirty {
struct vmw_surface_cache cache;
u32 num_subres;
SVGA3dBox boxes[];
};
like, that's the whole shape of it. three members. she's simple. she's iconic. π«Ά
π¦ Members π¦
okay let's do a vibe check on each one:
cacheβ the cached layout information of the surface. it's giving "I already know where everything is, don't @ me." β¨num_subresβ the number of subresources. a plainu32counting them all up, lowkey important.boxesβ an array ofSVGA3dBoxes indicating dirty regions. and here's the key detail: one per subresource. so ifnum_subressays there's N of them, there's N boxes. that's the whole point, iykyk π
it's a flexible array member situation with boxes[] β the array lives at the end of the struct, so the dirty regions ride along with the header. literally main character energy.
π₯ SEE ALSO π₯
the kernel file this all lives in is ./drivers/gpu/drm/vmwgfx/vmwgfx_surface.c, and honestly the friend group is huge. here's everyone:
struct vmw_user_surface(9)struct vmw_surface_offset(9)vmw_surface_dma_size(9)vmw_surface_define_size(9)vmw_surface_destroy_size(9)vmw_surface_destroy_encode(9)vmw_surface_define_encode(9)vmw_surface_dma_encode(9)vmw_hw_surface_destroy(9)vmw_legacy_srf_create(9)vmw_legacy_srf_dma(9)vmw_legacy_srf_bind(9)vmw_legacy_srf_unbind(9)vmw_legacy_srf_destroy(9)vmw_surface_init(9)vmw_user_surface_base_to_res(9)vmw_user_surface_free(9)vmw_user_surface_base_release(9)vmw_surface_destroy_ioctl(9)vmw_surface_define_ioctl(9)vmw_surface_reference_ioctl(9)vmw_gb_surface_create(9)vmw_gb_surface_define_ioctl(9)vmw_gb_surface_reference_ioctl(9)vmw_gb_surface_define_ext_ioctl(9)vmw_gb_surface_reference_ext_ioctl(9)vmw_gb_surface_define_internal(9)vmw_gb_surface_reference_internal(9)vmw_subres_dirty_add(9)vmw_subres_dirty_full(9)vmw_dumb_create(9)
like I said. big friend group. go say hi. π
anyway bestie that's the whole page β sourced from ./drivers/gpu/drm/vmwgfx, dated October 2026, and ngl it ate. go touch some subresources. mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms