vmw_collect_view_ids(9)
β¨ vmw_collect_view_ids(9) β¨
okay so bestie, this one is a kernel API manual page from section 9 β the vmw_collect_view_ids function. she's a little niche, a little GPU-driver-core, but we're gonna get through it together π
π NAME π
vmw_collect_view_ids β builds view id data for a view binding command without checking which bindings actually need to be emitted β¨
πΈ SYNOPSIS πΈ
void vmw_collect_view_ids (struct vmw_ctx_binding_state *cbs , const
struct vmw_ctx_bindinfo_view *biv , u32 max_num );
π ARGUMENTS π
cbsβ pointer to the context'sstruct vmw_ctx_binding_stateπ«Άbivβ pointer to where the binding info array is stored incbsmax_numβ the maximum number of entries in thebiarray, fr fr
π¦ DESCRIPTION π¦
So the way this works: she scans the bi array for bindings and builds a buffer of view id data. that's it, that's the vibe β¨
She stops at the first non-existing binding in the bi array β like, that's the cutoff, no cap π
On output:
cbs->bind_cmd_countcontains the number of bindings to be emittedcbs->bind_first_slotis set to zerocbs->bind_cmd_buffercontains the command data
like, she's giving very much "do the thing and report back" energy π
π§ SEE ALSO π§
Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_binding.c plus a whole friend group of structs and functions β she literally knows everyone:
struct vmw_ctx_binding_state(9)struct vmw_binding_info(9)vmw_cbs_context(9)vmw_binding_loc(9)vmw_binding_drop(9)vmw_binding_add(9)vmw_binding_cb_offset_update(9)vmw_binding_add_uav_index(9)vmw_binding_transfer(9)vmw_binding_state_kill(9)vmw_binding_state_scrub(9)vmw_binding_res_list_kill(9)vmw_binding_res_list_scrub(9)vmw_binding_state_commit(9)vmw_binding_rebind_all(9)vmw_binding_scrub_shader(9)vmw_binding_scrub_render_target(9)vmw_binding_scrub_texture(9)vmw_binding_scrub_dx_shader(9)vmw_binding_scrub_cb(9)vmw_collect_dirty_view_ids(9)vmw_emit_set_sr(9)vmw_emit_set_rt(9)vmw_collect_so_targets(9)vmw_emit_set_so_target(9)vmw_binding_emit_dirty_ps(9)vmw_collect_dirty_vbs(9)vmw_emit_set_vb(9)vmw_binding_emit_dirty(9)vmw_binding_scrub_sr(9)vmw_binding_scrub_dx_rt(9)vmw_binding_scrub_so_target(9)vmw_binding_scrub_vb(9)vmw_binding_scrub_ib(9)vmw_binding_scrub_so(9)vmw_binding_state_alloc(9)vmw_binding_state_free(9)vmw_binding_state_list(9)vmw_binding_state_reset(9)vmw_binding_dirtying(9)
and that's the whole page, bestie β 100% of the facts, 0% of the boring π«Ά
this icon lives in ./drivers/gpu/drm/vmwgfx, the source is the Kernel API Manual, and she was dated October 2026 β so go forth and collect those view ids, iykyk ππ
π¦ 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