Lines Matching refs:memObj
58 struct gl_memory_object *memObj) in _mesa_delete_memory_object() argument
60 free(memObj); in _mesa_delete_memory_object()
167 struct gl_memory_object *memObj; in _mesa_CreateMemoryObjectsEXT() local
172 memObj = ctx->Driver.NewMemoryObject(ctx, memoryObjects[i]); in _mesa_CreateMemoryObjectsEXT()
173 if (!memObj) { in _mesa_CreateMemoryObjectsEXT()
182 memObj); in _mesa_CreateMemoryObjectsEXT()
195 struct gl_memory_object *memObj; in _mesa_MemoryObjectParameterivEXT() local
204 memObj = _mesa_lookup_memory_object(ctx, memoryObject); in _mesa_MemoryObjectParameterivEXT()
205 if (!memObj) in _mesa_MemoryObjectParameterivEXT()
208 if (memObj->Immutable) { in _mesa_MemoryObjectParameterivEXT()
215 memObj->Dedicated = (GLboolean) params[0]; in _mesa_MemoryObjectParameterivEXT()
235 struct gl_memory_object *memObj; in _mesa_GetMemoryObjectParameterivEXT() local
244 memObj = _mesa_lookup_memory_object(ctx, memoryObject); in _mesa_GetMemoryObjectParameterivEXT()
245 if (!memObj) in _mesa_GetMemoryObjectParameterivEXT()
250 *params = (GLint) memObj->Dedicated; in _mesa_GetMemoryObjectParameterivEXT()
273 struct gl_memory_object *memObj = _mesa_lookup_memory_object(ctx, memory); in lookup_memory_object_err() local
274 if (!memObj) in lookup_memory_object_err()
277 if (!memObj->Immutable) { in lookup_memory_object_err()
283 return memObj; in lookup_memory_object_err()
296 struct gl_memory_object *memObj; in texstorage_memory() local
309 memObj = lookup_memory_object_err(ctx, memory, func); in texstorage_memory()
310 if (!memObj) in texstorage_memory()
313 _mesa_texture_storage_memory(ctx, dims, texObj, memObj, target, in texstorage_memory()
325 struct gl_memory_object *memObj; in texstorage_memory_ms() local
338 memObj = lookup_memory_object_err(ctx, memory, func); in texstorage_memory_ms()
339 if (!memObj) in texstorage_memory_ms()
342 _mesa_texture_storage_ms_memory(ctx, dims, texObj, memObj, target, samples, in texstorage_memory_ms()
357 struct gl_memory_object *memObj; in texturestorage_memory() local
370 memObj = lookup_memory_object_err(ctx, memory, func); in texturestorage_memory()
371 if (!memObj) in texturestorage_memory()
374 _mesa_texture_storage_memory(ctx, dims, texObj, memObj, texObj->Target, in texturestorage_memory()
386 struct gl_memory_object *memObj; in texturestorage_memory_ms() local
399 memObj = lookup_memory_object_err(ctx, memory, func); in texturestorage_memory_ms()
400 if (!memObj) in texturestorage_memory_ms()
403 _mesa_texture_storage_ms_memory(ctx, dims, texObj, memObj, texObj->Target, in texturestorage_memory_ms()
624 struct gl_memory_object *memObj = _mesa_lookup_memory_object(ctx, memory); in _mesa_ImportMemoryFdEXT() local
625 if (!memObj) in _mesa_ImportMemoryFdEXT()
628 ctx->Driver.ImportMemoryObjectFd(ctx, memObj, size, fd); in _mesa_ImportMemoryFdEXT()
629 memObj->Immutable = GL_TRUE; in _mesa_ImportMemoryFdEXT()