vmw_surface_...ize_extended(9)
π vmw_surface_...ize_extended(9) β bestie edition π
okay so this page lives in the Kernel API Manual, and the header is literally vmw_surface_...ize_extended(9) (yes the ellipsis is really in there, it's giving "we ran out of column width" energy β¨). Buckle up, we're learning about surface sizes today.
πΈ NAME πΈ
vmw_surface_get_serialized_size_extended β returns the number of bytes required for a surface with given parameters. Support for sample count. π«Ά
β¨ SYNOPSIS β¨
u32 vmw_surface_get_serialized_size_extended (SVGA3dSurfaceFormat format
, struct drm_vmw_size base_level_size , u32 num_mip_levels , u32
num_layers , u32 num_samples );
That's the whole signature, no cap. It returns a u32 (the byte count, iykyk) and takes five things. Let's meet them π
π¦ ARGUMENTS π¦
okay so about these bestieβ¦ the source doc says -- undescribed -- for every single one of them. Not me making stuff up on the internet β I'm literally reading the page. π So here they are, in order, fully present and accounted for, with the honest truth that the manpage gives zero detail:
- format β
SVGA3dSurfaceFormat. The doc's description is literally-- undescribed --. π - base_level_size β
struct drm_vmw_size. Also-- undescribed --. π - num_mip_levels β
u32. Also-- undescribed --. π - num_layers β
u32. Also-- undescribed --. π - num_samples β
u32. Also-- undescribed --. π
fr fr if you need the real semantics, go read the header file down below β the manpage is not gonna be the one to tell you. π
π SEE ALSO π
the little family of functions and structs this one hangs out with, in the exact order the page lists them:
- 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_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)
and that's the whole page, slay π β¨
this little icon came from ./drivers/gpu/drm/vmwgfx in October 2026, and the footer proudly announces itself as vmw_surface_...ize_extended(9) one more time β main character energy, bookending the whole thing ππ«Ά go drink some water and go read that header file bestie π
π¦ 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