Lines Matching defs:shared
71 * Delete a texture handle in the shared state.
84 * Delete an image handle in the shared state.
273 /* Store the handle in the shared state for all contexts. */
361 /* Store the handle in the shared state for all contexts. */
386 * Init/free shared allocated handles.
389 _mesa_init_shared_handles(struct gl_shared_state *shared)
391 shared->TextureHandles = _mesa_hash_table_u64_create(NULL);
392 shared->ImageHandles = _mesa_hash_table_u64_create(NULL);
393 mtx_init(&shared->HandlesMutex, mtx_recursive);
397 _mesa_free_shared_handles(struct gl_shared_state *shared)
399 if (shared->TextureHandles)
400 _mesa_hash_table_u64_destroy(shared->TextureHandles);
402 if (shared->ImageHandles)
403 _mesa_hash_table_u64_destroy(shared->ImageHandles);
405 mtx_destroy(&shared->HandlesMutex);