vmw_surface_setup_cache(9)
π
vmw_surface_setup_cache(9) π
okay so bestie, this one's from the Kernel API Manual, and it is literally about building a surface cache entry. no cap, that's the whole vibe. π«Ά
β¨ NAME β¨
vmw_surface_setup_cache β Build a surface cache entry
π SYNOPSIS π
int vmw_surface_setup_cache (const struct drm_vmw_size *size ,
SVGA3dSurfaceFormat format , u32 num_mip_levels , u32 num_layers , u32
num_samples , struct vmw_surface_cache *cache );
π ARGUMENTS π
sizeβ the surface base level dimensions. iconic.formatβ the surface format. slay.num_mip_levelsβ number of mipmap levels.num_layersβ number of layers.num_samplesβ okay so the source literally says-- undescribed --and i'm not gonna invent lore πcacheβ pointer to astruct vmw_surface_cachobject to be filled in. (yes,cachβ that's exactly what the original says, don't come for me π)
π RETURN π
Zero on success, -EINVAL on invalid surface layout. that's the tea. β¨
π¦ SEE ALSO π¦
- 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_mip(9)struct vmw_surface_cache(9)struct vmw_surface_loc(9)vmw_surface_subres(9)vmw_surface_get_loc(9)vmw_surface_inc_loc(9)vmw_surface_min_loc(9)
mwah π that's the whole page, bestie β source/version ./drivers/gpu/drm/vmwgfx, dated October 2026. periodt. π
π¦ 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