vmw_view_bindings_add(9)
π vmw_view_bindings_add(9) π
okay so bestie, welcome to the Kernel API Manual page for vmw_view_bindings_add(9) β yes that (9) is the section number, we're in kernel-land now, buckle up π
β¨ NAME β¨
vmw_view_bindings_add β literally adds a whole array of view bindings to a context binding state tracker. no cap, that's the whole gig π¦
πΈ SYNOPSIS πΈ
int vmw_view_bindings_add (struct vmw_sw_context *sw_context , enum
vmw_view_type view_type , enum vmw_ctx_binding_type binding_type ,
uint32 shader_slot , uint32 view_ids[] , u32 num_views , u32 first_slot
);
like, it returns an int, and it takes a lot of arguments. we love a function with range π
π ARGUMENTS π
okay so here's the cast of characters, and every single one of them matters:
sw_contextβ the execbuf state that's being used for this command. it's giving "the main character of this whole operation" energy πview_typeβ the view type for the bindings. of typeenum vmw_view_typebtw, keep up π«Άbinding_typeβ the binding type for the bindings. yes that's the whole description, no notes, of typeenum vmw_ctx_binding_typeβ¨shader_slotβ the shader slot to use for the bindings. auint32, iconic πview_idsβ the array of view ids to be bound. this is theuint32 view_ids[]moment, the actual payload, the whole point π₯num_viewsβ how many view ids are chilling inview_ids. au32, no cap π§first_slotβ the binding slot to be used for the first view id inview_ids. the rest just queue up behind it, iykyk π
π¦ SEE ALSO π¦
okay this list is enormous and honestly lowkey iconic for it. here's every single thing, all of it, not skipping a single one π
Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c β that's where all of this lives, bestie π
And then, the extended universe:
struct vmw_relocation(9)enum vmw_resource_relocation_type(9)struct vmw_resource_relocation(9)struct vmw_ctx_validation_info(9)struct vmw_cmd_entry(9)vmw_ptr_diff(9)vmw_execbuf_bindings_commit(9)vmw_bind_dx_query_mob(9)vmw_cmd_ctx_first_setup(9)vmw_execbuf_res_size(9)vmw_execbuf_rcache_update(9)vmw_execbuf_res_val_add(9)vmw_view_res_val_add(9)vmw_view_id_val_add(9)vmw_resource_context_res_add(9)vmw_resource_relocation_add(9)vmw_resource_relocations_free(9)vmw_resource_relocations_apply(9)vmw_resources_reserve(9)vmw_cmd_res_check(9)vmw_rebind_all_dx_query(9)vmw_rebind_contexts(9)vmw_cmd_cid_check(9)vmw_execbuf_info_from_res(9)vmw_query_bo_switch_prepare(9)vmw_query_bo_switch_commit(9)vmw_translate_mob_ptr(9)vmw_translate_guest_ptr(9)vmw_cmd_dx_define_query(9)vmw_cmd_dx_bind_query(9)vmw_cmd_begin_gb_query(9)vmw_cmd_begin_query(9)vmw_cmd_end_gb_query(9)vmw_cmd_end_query(9)vmw_cmd_wait_gb_query(9)vmw_cmd_wait_query(9)vmw_cmd_res_switch_backup(9)vmw_cmd_switch_backup(9)vmw_cmd_bind_gb_surface(9)vmw_cmd_update_gb_image(9)vmw_cmd_update_gb_surface(9)vmw_cmd_readback_gb_image(9)vmw_cmd_readback_gb_surface(9)vmw_cmd_invalidate_gb_image(9)vmw_cmd_invalidate_gb_surface(9)vmw_cmd_shader_define(9)vmw_cmd_shader_destroy(9)vmw_cmd_set_shader(9)vmw_cmd_set_shader_const(9)vmw_cmd_bind_gb_shader(9)vmw_cmd_dx_set_single_constant_buffer(9)vmw_cmd_dx_set_constant_buffer_offset(9)vmw_cmd_dx_set_shader_res(9)vmw_cmd_dx_set_shader(9)vmw_cmd_dx_set_vertex_buffers(9)vmw_cmd_dx_set_index_buffer(9)vmw_cmd_dx_set_rendertargets(9)vmw_cmd_dx_clear_rendertarget_view(9)vmw_cmd_dx_clear_depthstencil_view(9)vmw_cmd_dx_set_so_targets(9)vmw_cmd_dx_check_subresource(9)vmw_cmd_dx_view_remove(9)vmw_cmd_dx_define_shader(9)vmw_cmd_dx_destroy_shader(9)vmw_cmd_dx_bind_shader(9)vmw_cmd_dx_genmips(9)vmw_cmd_dx_transfer_from_buffer(9)vmw_cmd_intra_surface_copy(9)vmw_execbuf_copy_fence_user(9)vmw_execbuf_submit_fifo(9)vmw_execbuf_submit_cmdbuf(9)vmw_execbuf_cmdbuf(9)vmw_execbuf_unpin_panic(9)__vmw_execbuf_release_pinned_bo(9)vmw_execbuf_release_pinned_bo(9)
like, genuinely go read some of these if you're touching execbuf stuff. they're all right there in ./drivers/gpu/drm/vmwgfx/ and they are not decorative π
okay that's the whole page bestie, you ate that π β¨
and a lil sign-off: this cutie lives in ./drivers/gpu/drm/vmwgfx, it's dated October 2026, and the page itself is vmw_view_bindings_add(9) β go forth and bind those views, mwah π«Άππ¦
π¦ 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