STRUCT VMW_SURFACE_MIP(9)
π struct vmw_surface_mip β NAME
okay so bestie, welcome to struct vmw_surface_mip(9) β the Kernel API Manual page that's literally all about mipmap level information β¨. no cap, that's the whole vibe: one struct, four members, zero drama π.
πΈ SYNOPSIS
here's the whole glow-up, exactly as it ships π
struct vmw_surface_mip {
size_t bytes;
size_t img_stride;
size_t row_stride;
struct drm_vmw_size size;
};
π Members
bestie, let me introduce you to the cast β four members, each one a main character in their own right π«Ά:
bytesβ the bytes required in the backing store of this mipmap level. it's giving "how much room do i need in the closet" energy π§.img_strideβ byte stride per image. yes, per image β that's the rule, iykyk π .row_strideβ byte stride per block row. different stride, different job β don't mix them up or it's over for you π.sizeβ the size of the mipmap. literally that. it's astruct drm_vmw_sizeand it holds the size, and honestly? iconic π.
π₯ SEE ALSO
the whole friend group, no one left out π:
- Kernel file
./drivers/gpu/drm/vmwgfx/vmw_surface_cache.h vmw_surface_get_desc(9)vmw_surface_get_mip_size(9)vmw_surface_get_image_buffer_size(9)vmw_surface_get_serialized_size(9)vmw_surface_get_serialized_size_extended(9)vmw_surface_get_pixel_offset(9)vmw_surface_is_gb_screen_target_format(9)vmw_surface_is_dx_screen_target_format(9)vmw_surface_is_screen_target_format(9)struct vmw_surface_cache(9)struct vmw_surface_loc(9)vmw_surface_subres(9)vmw_surface_setup_cache(9)vmw_surface_get_loc(9)vmw_surface_inc_loc(9)vmw_surface_min_loc(9)
lowkey the realest part: this page lives in ./drivers/gpu/drm/vmwgfx and it's dated October 2026 π«. that's the source, that's the version, that's the timestamp β slay, go read the other pages too, 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