Lines Matching defs:handle
45 * Return the gl_texture_handle_object for a given 64-bit handle.
61 * Return the gl_image_handle_object for a given 64-bit handle.
77 * Delete a texture handle in the shared state.
90 * Delete an image handle in the shared state.
103 * Return TRUE if the texture handle is resident in the current context.
106 is_texture_handle_resident(struct gl_context *ctx, GLuint64 handle)
109 handle) != NULL;
113 * Return TRUE if the image handle is resident in the current context.
116 is_image_handle_resident(struct gl_context *ctx, GLuint64 handle)
119 handle) != NULL;
123 * Make a texture handle resident/non-resident in the current context.
132 GLuint64 handle = texHandleObj->handle;
135 assert(!is_texture_handle_resident(ctx, handle));
137 _mesa_hash_table_u64_insert(ctx->ResidentTextureHandles, handle,
140 ctx->pipe->make_texture_handle_resident(ctx->pipe, handle, GL_TRUE);
150 assert(is_texture_handle_resident(ctx, handle));
152 _mesa_hash_table_u64_remove(ctx->ResidentTextureHandles, handle);
154 ctx->pipe->make_texture_handle_resident(ctx->pipe, handle, GL_FALSE);
173 * Make an image handle resident/non-resident in the current context.
181 GLuint64 handle = imgHandleObj->handle;
184 assert(!is_image_handle_resident(ctx, handle));
186 _mesa_hash_table_u64_insert(ctx->ResidentImageHandles, handle,
189 ctx->pipe->make_image_handle_resident(ctx->pipe, handle, access, GL_TRUE);
197 assert(is_image_handle_resident(ctx, handle));
199 _mesa_hash_table_u64_remove(ctx->ResidentImageHandles, handle);
201 ctx->pipe->make_image_handle_resident(ctx->pipe, handle, access, GL_FALSE);
255 GLuint64 handle;
259 * "The handle for each texture or texture/sampler pair is unique; the same
260 * handle will be returned if GetTextureHandleARB is called multiple times
268 return texHandleObj->handle;
271 /* Request a new texture handle from the driver. */
272 handle = new_texture_handle(ctx, texObj, sampObj);
273 if (!handle) {
286 /* Store the handle into the texture object. */
289 texHandleObj->handle = handle;
294 /* Store the handle into the separate sampler if needed. */
305 /* Store the handle in the shared state for all contexts. */
306 _mesa_hash_table_u64_insert(ctx->Shared->TextureHandles, handle,
310 return handle;
334 GLuint64 handle;
338 * "The handle returned for each combination of <texture>, <level>,
339 * <layered>, <layer>, and <format> is unique; the same handle will be
347 return imgHandleObj->handle;
366 /* Request a new image handle from the driver. */
369 handle = ctx->pipe->create_image_handle(ctx->pipe, &image);
370 if (!handle) {
383 /* Store the handle into the texture object. */
385 imgHandleObj->handle = handle;
395 /* Store the handle in the shared state for all contexts. */
396 _mesa_hash_table_u64_insert(ctx->Shared->ImageHandles, handle, imgHandleObj);
399 return handle;
461 if (is_texture_handle_resident(ctx, (*texHandleObj)->handle))
468 if (is_image_handle_resident(ctx, (*imgHandleObj)->handle))
485 /* Delete the handle in the separate sampler object. */
490 delete_texture_handle(ctx, (*texHandleObj)->handle);
498 delete_image_handle(ctx, (*imgHandleObj)->handle);
521 /* Delete the handle in the texture object. */
526 delete_texture_handle(ctx, (*texHandleObj)->handle);
729 _mesa_MakeTextureHandleResidentARB_no_error(GLuint64 handle)
735 texHandleObj = lookup_texture_handle(ctx, handle);
740 _mesa_MakeTextureHandleResidentARB(GLuint64 handle)
755 * if <handle> is not a valid texture handle, or if <handle> is already
758 texHandleObj = lookup_texture_handle(ctx, handle);
761 "glMakeTextureHandleResidentARB(handle)");
765 if (is_texture_handle_resident(ctx, handle)) {
775 _mesa_MakeTextureHandleNonResidentARB_no_error(GLuint64 handle)
781 texHandleObj = lookup_texture_handle(ctx, handle);
786 _mesa_MakeTextureHandleNonResidentARB(GLuint64 handle)
801 * MakeTextureHandleNonResidentARB if <handle> is not a valid texture
802 * handle, or if <handle> is not resident in the current GL context."
804 texHandleObj = lookup_texture_handle(ctx, handle);
807 "glMakeTextureHandleNonResidentARB(handle)");
811 if (!is_texture_handle_resident(ctx, handle)) {
910 _mesa_MakeImageHandleResidentARB_no_error(GLuint64 handle, GLenum access)
916 imgHandleObj = lookup_image_handle(ctx, handle);
921 _mesa_MakeImageHandleResidentARB(GLuint64 handle, GLenum access)
945 * if <handle> is not a valid image handle, or if <handle> is already
948 imgHandleObj = lookup_image_handle(ctx, handle);
951 "glMakeImageHandleResidentARB(handle)");
955 if (is_image_handle_resident(ctx, handle)) {
965 _mesa_MakeImageHandleNonResidentARB_no_error(GLuint64 handle)
971 imgHandleObj = lookup_image_handle(ctx, handle);
976 _mesa_MakeImageHandleNonResidentARB(GLuint64 handle)
992 * MakeImageHandleNonResidentARB if <handle> is not a valid image handle,
993 * or if <handle> is not resident in the current GL context."
995 imgHandleObj = lookup_image_handle(ctx, handle);
998 "glMakeImageHandleNonResidentARB(handle)");
1002 if (!is_image_handle_resident(ctx, handle)) {
1012 _mesa_IsTextureHandleResidentARB_no_error(GLuint64 handle)
1015 return is_texture_handle_resident(ctx, handle);
1019 _mesa_IsTextureHandleResidentARB(GLuint64 handle)
1032 * IsTextureHandleResidentARB and IsImageHandleResidentARB if <handle> is
1033 * not a valid texture or image handle, respectively."
1035 if (!lookup_texture_handle(ctx, handle)) {
1037 "glIsTextureHandleResidentARB(handle)");
1041 return is_texture_handle_resident(ctx, handle);
1045 _mesa_IsImageHandleResidentARB_no_error(GLuint64 handle)
1048 return is_image_handle_resident(ctx, handle);
1052 _mesa_IsImageHandleResidentARB(GLuint64 handle)
1066 * IsTextureHandleResidentARB and IsImageHandleResidentARB if <handle> is
1067 * not a valid texture or image handle, respectively."
1069 if (!lookup_image_handle(ctx, handle)) {
1071 "glIsImageHandleResidentARB(handle)");
1075 return is_image_handle_resident(ctx, handle);