vmw_surface_...pixel_offset(9)
โจ NAME โจ
vmw_surface_get_pixel_offset โ bestie, this one computes the offset (in bytes) to a pixel in an image (or volume) ๐
that's literally it, that's the whole gig
This is page vmw_surface_...pixel_offset(9) from the Kernel API Manual, and honestly? She's a queen of math ๐งฎ๐
โจ SYNOPSIS โจ
u32 vmw_surface_get_pixel_offset (SVGA3dSurfaceFormat format , u32 width
, u32 height , u32 x , u32 y , u32 z );
Notice how she takes u32 six whole times and still returns a u32? That's main character energy fr fr ๐ฅ
๐ ARGUMENTS ๐
Ok so let's do the vibe check on every single parameter, no skipping, no cap:
formatโ the manpage literally just says -- undescribed -- ๐ญ like bestie... she said "no thoughts, head empty." Not me leaving a placeholder in the docs ๐ (ngl whoever wrote this one left a few of these open, keep reading, you'll see)widthโ the image width in pixels ๐heightโ the image height in pixels (no trailing period, she's built different, we respect it)xโ -- undescribed -- ๐ญ the mystery coordinateyโ -- undescribed -- another mystery coordinate, we love an enigma ๐ฆzโ -- undescribed -- the third mystery coordinate!! (yes that's why the NAME line says "or volume" โ 3D behaviour confirmed, iykyk ๐)
Lowkey a warning for real: four out of six arguments are listed as -- undescribed -- in the original. I'm not gonna invent lore for them, because guessing at behaviour is a red flag ๐ฉ so just... know that the docs are giving "unfinished Google Doc at 3am" here.
๐ SEE ALSO ๐
The kernel file she lives in (her address, her whole vibe):
./drivers/gpu/drm/vmwgfx/vmw_surface_cache.h
And the entire friend group ๐ซถ besties, compatriots, the whole group chat:
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_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)
Ok that's the whole page, you ate that bestie ๐
โจ This absolute icon lives in ./drivers/gpu/drm/vmwgfx, dated October 2026, and yes โ the header and footer both say vmw_surface_...pixel_offset(9) which is a lot of dots but we move ๐๐ฆ๐
๐ฆ 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