Lines Matching defs:handle
1018 /* TODO: handle this I guess */
1842 uint64_t handle = util_idalloc_alloc(&ctx->di.bindless[bd->ds.is_buffer].tex_slots);
1844 handle += ZINK_MAX_BINDLESS_HANDLES;
1845 bd->handle = handle;
1846 _mesa_hash_table_insert(&ctx->di.bindless[bd->ds.is_buffer].tex_handles, (void*)(uintptr_t)handle, bd);
1847 return handle;
1851 zink_delete_texture_handle(struct pipe_context *pctx, uint64_t handle)
1854 bool is_buffer = ZINK_BINDLESS_IS_BUFFER(handle);
1855 struct hash_entry *he = _mesa_hash_table_search(&ctx->di.bindless[is_buffer].tex_handles, (void*)(uintptr_t)handle);
1860 uint32_t h = handle;
1895 zero_bindless_descriptor(struct zink_context *ctx, uint32_t handle, bool is_buffer, bool is_image)
1899 VkBufferView *bv = &ctx->di.bindless[is_image].buffer_infos[handle];
1902 VkDescriptorImageInfo *ii = &ctx->di.bindless[is_image].img_infos[handle];
1907 VkBufferView *bv = &ctx->di.bindless[is_image].buffer_infos[handle];
1912 VkDescriptorImageInfo *ii = &ctx->di.bindless[is_image].img_infos[handle];
1921 zink_make_texture_handle_resident(struct pipe_context *pctx, uint64_t handle, bool resident)
1924 bool is_buffer = ZINK_BINDLESS_IS_BUFFER(handle);
1925 struct hash_entry *he = _mesa_hash_table_search(&ctx->di.bindless[is_buffer].tex_handles, (void*)(uintptr_t)handle);
1931 handle -= ZINK_MAX_BINDLESS_HANDLES;
1939 VkBufferView *bv = &ctx->di.bindless[0].buffer_infos[handle];
1943 VkDescriptorImageInfo *ii = &ctx->di.bindless[0].img_infos[handle];
1953 uint32_t h = is_buffer ? handle + ZINK_MAX_BINDLESS_HANDLES : handle;
1957 zero_bindless_descriptor(ctx, handle, is_buffer, false);
1990 uint64_t handle = util_idalloc_alloc(&ctx->di.bindless[bd->ds.is_buffer].img_slots);
1992 handle += ZINK_MAX_BINDLESS_HANDLES;
1993 bd->handle = handle;
1994 _mesa_hash_table_insert(&ctx->di.bindless[bd->ds.is_buffer].img_handles, (void*)(uintptr_t)handle, bd);
1995 return handle;
1999 zink_delete_image_handle(struct pipe_context *pctx, uint64_t handle)
2002 bool is_buffer = ZINK_BINDLESS_IS_BUFFER(handle);
2003 struct hash_entry *he = _mesa_hash_table_search(&ctx->di.bindless[is_buffer].img_handles, (void*)(uintptr_t)handle);
2007 uint32_t h = handle;
2024 zink_make_image_handle_resident(struct pipe_context *pctx, uint64_t handle, unsigned paccess, bool resident)
2027 bool is_buffer = ZINK_BINDLESS_IS_BUFFER(handle);
2028 struct hash_entry *he = _mesa_hash_table_search(&ctx->di.bindless[is_buffer].img_handles, (void*)(uintptr_t)handle);
2049 handle -= ZINK_MAX_BINDLESS_HANDLES;
2059 VkBufferView *bv = &ctx->di.bindless[1].buffer_infos[handle];
2063 VkDescriptorImageInfo *ii = &ctx->di.bindless[1].img_infos[handle];
2072 uint32_t h = is_buffer ? handle + ZINK_MAX_BINDLESS_HANDLES : handle;
2079 zero_bindless_descriptor(ctx, handle, is_buffer, true);