vmw_surface_get_mip_size(9)
π vmw_surface_get_mip_size(9) β Kernel API Manual β¨
okay bestie, welcome to the kernel API manual, this one's filed under vmw_surface_get_mip_size(9) and it's lowkey a little cutie π
β¨ NAME β¨
vmw_surface_get_mip_size β give it a base level size and a mip level, and it computes the size of that mip level. that's it, that's the whole job, and it does it flawlessly π
πΈ SYNOPSIS πΈ
struct drm_vmw_size vmw_surface_get_mip_size (struct drm_vmw_size base_level , u32 mip_level );
so it takes in a struct drm_vmw_size and a u32, and hands you back a struct drm_vmw_size. returns the whole struct right there in the signature, no mystery, no drama π¦
π«Ά ARGUMENTS π«Ά
base_levelβ the base level size, bestie. and ngl the original docs literally just say "-- undescribed --" for this one π so likeβ¦ that's the vibe we're working with, no cap. it's the base level size and it's astruct drm_vmw_size.mip_levelβ the mip level, obviously π and fr fr, the source also just says "-- undescribed --" here too π so we're keeping it 100: it's au32, it's the mip level, that's what we know.
okay so the manpage itself does not describe these two args any further than that. not me covering for it, just being honest with you π«Ά
π SEE ALSO π
the kernel file for all this lives at:
./drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
and the whole friend group shows up too, periodt:
vmw_surface_get_desc(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_mip(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)
like, that's the entire group chat right there, go say hi π
π and that's the page!! π it's from the ./drivers/gpu/drm/vmwgfx gang, dated October 2026 β iconique behavior only, 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