ENUM VMW_SM_TYPE(9)
π enum vmw_sm_type(9) β or, "what can this graphics context actually DO" π
okay so picture this: you're deep in the Kernel API Manual (yes, that one, the Linux kernel docs, we're fancy now β¨) and you stumble on enum vmw_sm_type. Bestie. Buckle up, because this little enum is literally just a β¨vibe checkβ¨ for graphics hardware β it tells you which shader-model capabilities a device can support. That's it. That's the whole thing. And honestly? Iconic. π
πΈ NAME πΈ
enum vmw_sm_type β Graphics context capability supported by device.</p> π«Ά
Basically: a menu of "how much shader-model can your GPU handle, queen?" and the driver picks the highest one that applies.
β¨ SYNOPSIS β¨
enum vmw_sm_type {
VMW_SM_LEGACY ,
VMW_SM_4 ,
VMW_SM_4_1 ,
VMW_SM_5 ,
VMW_SM_5_1X ,
VMW_SM_MAX
};
no cap, that's the whole shape of it β a ladder from "old school" all the way up to VMW_SM_MAX. πͺ
π¦ Constants π¦
okay so here's each one, in order, exactly as listed β every single one gets its moment π
VMW_SM_LEGACYβ the pre-DX context era. Baby's first context, if you will. πVMW_SM_4β context support up to SM4. We stan a solid mid-tier queen.VMW_SM_4_1β context support up to SM4_1. tiny upgrade, big slay.VMW_SM_5β context support up to SM5. now we're cooking π₯VMW_SM_5_1Xβ adds support forsm5_1andgl43extensions. she's got extras, she's main character energy fr fr πVMW_SM_MAXβ should be the last. that's literally the whole job description. keep her at the end or the vibe check breaks π«Ά
π SEE ALSO π
kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_drv.h β that's where she lives, go say hi π
and the whole extended friend group, all the related docs you should absolutely go read next (iykyk):
struct vmw_resource(9)struct vmw_surface_metadata(9)struct vmw_surface(9)struct vmw_res_cache_entry(9)enum vmw_dma_map_mode(9)struct vmw_sg_table(9)struct vmw_piter(9)struct vmw_sw_context(9)has_sm4_context(9)has_sm4_1_context(9)has_sm5_context(9)has_gl43_context(9)vmw_resource_mob_attached(9)vmw_fifo_caps(9)vmw_is_cursor_bypass3_enabled(9)vmw_piter_next(9)vmw_piter_dma_addr(9)vmw_piter_page(9)struct vmw_diff_cpy(9)VMW_DEBUG_USER(9)VMW_DEBUG_KMS(9)vmw_fifo_mem_read(9)vmw_fifo_mem_write(9)
π«Ά quick vibe check before you go: this page ships from ./drivers/gpu/drm/vmwgfx and it's dated October 2026. so yeah β mark your calendars bestie, the future is now, and the enum is ready. πβ¨π
π¦ 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