Lines Matching refs:bufObj

125    struct gl_buffer_object **bufObj = get_buffer_target(ctx, target);  in get_buffer()  local
127 if (!bufObj) { in get_buffer()
132 if (!_mesa_is_bufferobj(*bufObj)) { in get_buffer()
137 return *bufObj; in get_buffer()
204 struct gl_buffer_object *bufObj; in buffer_object_subdata_range_good() local
216 bufObj = get_buffer(ctx, caller, target); in buffer_object_subdata_range_good()
217 if (!bufObj) in buffer_object_subdata_range_good()
220 if (offset + size > bufObj->Size) { in buffer_object_subdata_range_good()
225 (unsigned long) bufObj->Size); in buffer_object_subdata_range_good()
228 if (_mesa_bufferobj_mapped(bufObj)) { in buffer_object_subdata_range_good()
234 return bufObj; in buffer_object_subdata_range_good()
263 struct gl_buffer_object *bufObj) in _mesa_delete_buffer_object() argument
267 if (bufObj->Data) in _mesa_delete_buffer_object()
268 free(bufObj->Data); in _mesa_delete_buffer_object()
271 bufObj->RefCount = -1000; in _mesa_delete_buffer_object()
272 bufObj->Name = ~0; in _mesa_delete_buffer_object()
274 _glthread_DESTROY_MUTEX(bufObj->Mutex); in _mesa_delete_buffer_object()
275 free(bufObj); in _mesa_delete_buffer_object()
288 struct gl_buffer_object *bufObj) in _mesa_reference_buffer_object_() argument
310 ASSERT(ctx->Array.ArrayBufferObj != bufObj); in _mesa_reference_buffer_object_()
311 ASSERT(ctx->Array.ArrayObj->ElementArrayBufferObj != bufObj); in _mesa_reference_buffer_object_()
312 ASSERT(ctx->Array.ArrayObj->Vertex.BufferObj != bufObj); in _mesa_reference_buffer_object_()
323 if (bufObj) { in _mesa_reference_buffer_object_()
325 _glthread_LOCK_MUTEX(bufObj->Mutex); in _mesa_reference_buffer_object_()
326 if (bufObj->RefCount == 0) { in _mesa_reference_buffer_object_()
333 bufObj->RefCount++; in _mesa_reference_buffer_object_()
336 (void *) bufObj, bufObj->Name, bufObj->RefCount); in _mesa_reference_buffer_object_()
338 *ptr = bufObj; in _mesa_reference_buffer_object_()
340 _glthread_UNLOCK_MUTEX(bufObj->Mutex); in _mesa_reference_buffer_object_()
371 const struct gl_buffer_object *bufObj = in count_buffer_size() local
375 *total = *total + bufObj->Size; in count_buffer_size()
416 struct gl_buffer_object * bufObj ) in _mesa_buffer_data() argument
422 new_data = _mesa_realloc( bufObj->Data, bufObj->Size, size ); in _mesa_buffer_data()
424 bufObj->Data = (GLubyte *) new_data; in _mesa_buffer_data()
425 bufObj->Size = size; in _mesa_buffer_data()
426 bufObj->Usage = usage; in _mesa_buffer_data()
429 memcpy( bufObj->Data, data, size ); in _mesa_buffer_data()
460 struct gl_buffer_object * bufObj ) in _mesa_buffer_subdata() argument
465 ASSERT(size + offset <= bufObj->Size); in _mesa_buffer_subdata()
467 if (bufObj->Data) { in _mesa_buffer_subdata()
468 memcpy( (GLubyte *) bufObj->Data + offset, data, size ); in _mesa_buffer_subdata()
493 struct gl_buffer_object * bufObj ) in _mesa_buffer_get_subdata() argument
497 if (bufObj->Data && ((GLsizeiptrARB) (size + offset) <= bufObj->Size)) { in _mesa_buffer_get_subdata()
498 memcpy( data, (GLubyte *) bufObj->Data + offset, size ); in _mesa_buffer_get_subdata()
510 struct gl_buffer_object *bufObj ) in _mesa_buffer_map_range() argument
513 assert(!_mesa_bufferobj_mapped(bufObj)); in _mesa_buffer_map_range()
515 bufObj->Pointer = bufObj->Data + offset; in _mesa_buffer_map_range()
516 bufObj->Length = length; in _mesa_buffer_map_range()
517 bufObj->Offset = offset; in _mesa_buffer_map_range()
518 bufObj->AccessFlags = access; in _mesa_buffer_map_range()
519 return bufObj->Pointer; in _mesa_buffer_map_range()
548 _mesa_buffer_unmap( struct gl_context *ctx, struct gl_buffer_object *bufObj ) in _mesa_buffer_unmap() argument
552 bufObj->Pointer = NULL; in _mesa_buffer_unmap()
553 bufObj->Length = 0; in _mesa_buffer_unmap()
554 bufObj->Offset = 0; in _mesa_buffer_unmap()
555 bufObj->AccessFlags = 0x0; in _mesa_buffer_unmap()
860 struct gl_buffer_object *bufObj = _mesa_lookup_bufferobj(ctx, ids[i]); in _mesa_DeleteBuffersARB() local
861 if (bufObj) { in _mesa_DeleteBuffersARB()
865 ASSERT(bufObj->Name == ids[i] || bufObj == &DummyBufferObject); in _mesa_DeleteBuffersARB()
867 if (_mesa_bufferobj_mapped(bufObj)) { in _mesa_DeleteBuffersARB()
869 ctx->Driver.UnmapBuffer(ctx, bufObj); in _mesa_DeleteBuffersARB()
870 bufObj->AccessFlags = default_access_mode(ctx); in _mesa_DeleteBuffersARB()
871 bufObj->Pointer = NULL; in _mesa_DeleteBuffersARB()
876 unbind(ctx, &arrayObj->VertexAttrib[j].BufferObj, bufObj); in _mesa_DeleteBuffersARB()
879 if (ctx->Array.ArrayBufferObj == bufObj) { in _mesa_DeleteBuffersARB()
882 if (arrayObj->ElementArrayBufferObj == bufObj) { in _mesa_DeleteBuffersARB()
887 if (ctx->CopyReadBuffer == bufObj) { in _mesa_DeleteBuffersARB()
890 if (ctx->CopyWriteBuffer == bufObj) { in _mesa_DeleteBuffersARB()
895 if (ctx->TransformFeedback.CurrentBuffer == bufObj) { in _mesa_DeleteBuffersARB()
899 if (ctx->TransformFeedback.CurrentObject->Buffers[j] == bufObj) { in _mesa_DeleteBuffersARB()
906 if (ctx->UniformBufferBindings[j].BufferObject == bufObj) { in _mesa_DeleteBuffersARB()
911 if (ctx->UniformBuffer == bufObj) { in _mesa_DeleteBuffersARB()
916 if (ctx->Pack.BufferObj == bufObj) { in _mesa_DeleteBuffersARB()
919 if (ctx->Unpack.BufferObj == bufObj) { in _mesa_DeleteBuffersARB()
923 if (ctx->Texture.BufferObject == bufObj) { in _mesa_DeleteBuffersARB()
939 bufObj->DeletePending = GL_TRUE; in _mesa_DeleteBuffersARB()
940 _mesa_reference_buffer_object(ctx, &bufObj, NULL); in _mesa_DeleteBuffersARB()
1002 struct gl_buffer_object *bufObj; in _mesa_IsBufferARB() local
1007 bufObj = _mesa_lookup_bufferobj(ctx, id); in _mesa_IsBufferARB()
1010 return bufObj && bufObj != &DummyBufferObject; in _mesa_IsBufferARB()
1019 struct gl_buffer_object *bufObj; in _mesa_BufferDataARB() local
1063 bufObj = get_buffer(ctx, "glBufferDataARB", target); in _mesa_BufferDataARB()
1064 if (!bufObj) in _mesa_BufferDataARB()
1067 if (_mesa_bufferobj_mapped(bufObj)) { in _mesa_BufferDataARB()
1069 ctx->Driver.UnmapBuffer(ctx, bufObj); in _mesa_BufferDataARB()
1070 bufObj->AccessFlags = default_access_mode(ctx); in _mesa_BufferDataARB()
1071 ASSERT(bufObj->Pointer == NULL); in _mesa_BufferDataARB()
1076 bufObj->Written = GL_TRUE; in _mesa_BufferDataARB()
1080 bufObj->Name, size, data, usage); in _mesa_BufferDataARB()
1088 if (!ctx->Driver.BufferData( ctx, target, size, data, usage, bufObj )) { in _mesa_BufferDataARB()
1099 struct gl_buffer_object *bufObj; in _mesa_BufferSubDataARB() local
1102 bufObj = buffer_object_subdata_range_good( ctx, target, offset, size, in _mesa_BufferSubDataARB()
1104 if (!bufObj) { in _mesa_BufferSubDataARB()
1112 bufObj->Written = GL_TRUE; in _mesa_BufferSubDataARB()
1115 ctx->Driver.BufferSubData( ctx, offset, size, data, bufObj ); in _mesa_BufferSubDataARB()
1124 struct gl_buffer_object *bufObj; in _mesa_GetBufferSubDataARB() local
1127 bufObj = buffer_object_subdata_range_good( ctx, target, offset, size, in _mesa_GetBufferSubDataARB()
1129 if (!bufObj) { in _mesa_GetBufferSubDataARB()
1135 ctx->Driver.GetBufferSubData( ctx, offset, size, data, bufObj ); in _mesa_GetBufferSubDataARB()
1143 struct gl_buffer_object * bufObj; in _mesa_MapBufferARB() local
1173 bufObj = get_buffer(ctx, "glMapBufferARB", target); in _mesa_MapBufferARB()
1174 if (!bufObj) in _mesa_MapBufferARB()
1177 if (_mesa_bufferobj_mapped(bufObj)) { in _mesa_MapBufferARB()
1182 if (!bufObj->Size) { in _mesa_MapBufferARB()
1189 map = ctx->Driver.MapBufferRange(ctx, 0, bufObj->Size, accessFlags, bufObj); in _mesa_MapBufferARB()
1199 ASSERT(bufObj->Pointer == map); in _mesa_MapBufferARB()
1200 ASSERT(bufObj->Length == bufObj->Size); in _mesa_MapBufferARB()
1201 ASSERT(bufObj->Offset == 0); in _mesa_MapBufferARB()
1202 bufObj->AccessFlags = accessFlags; in _mesa_MapBufferARB()
1206 bufObj->Written = GL_TRUE; in _mesa_MapBufferARB()
1210 bufObj->Name, bufObj->Size, access); in _mesa_MapBufferARB()
1213 GLubyte *b = (GLubyte *) bufObj->Pointer; in _mesa_MapBufferARB()
1214 for (i = 0; i < bufObj->Size; i++) in _mesa_MapBufferARB()
1221 GLubyte *buf = (GLubyte *) bufObj->Pointer; in _mesa_MapBufferARB()
1225 buf[bufObj->Size - i - 1] = 123; in _mesa_MapBufferARB()
1230 return bufObj->Pointer; in _mesa_MapBufferARB()
1238 struct gl_buffer_object *bufObj; in _mesa_UnmapBufferARB() local
1242 bufObj = get_buffer(ctx, "glUnmapBufferARB", target); in _mesa_UnmapBufferARB()
1243 if (!bufObj) in _mesa_UnmapBufferARB()
1246 if (!_mesa_bufferobj_mapped(bufObj)) { in _mesa_UnmapBufferARB()
1252 if (bufObj->Access != GL_READ_ONLY_ARB) { in _mesa_UnmapBufferARB()
1253 GLubyte *buf = (GLubyte *) bufObj->Pointer; in _mesa_UnmapBufferARB()
1257 GLuint pos = bufObj->Size - i - 1; in _mesa_UnmapBufferARB()
1268 if (bufObj->AccessFlags & GL_MAP_WRITE_BIT) { in _mesa_UnmapBufferARB()
1270 GLubyte *b = (GLubyte *) bufObj->Pointer; in _mesa_UnmapBufferARB()
1273 for (i = 0; i < bufObj->Size - 1; i++) { in _mesa_UnmapBufferARB()
1282 bufObj->Name, unchanged, bufObj->Size, pos); in _mesa_UnmapBufferARB()
1287 status = ctx->Driver.UnmapBuffer( ctx, bufObj ); in _mesa_UnmapBufferARB()
1288 bufObj->AccessFlags = default_access_mode(ctx); in _mesa_UnmapBufferARB()
1289 ASSERT(bufObj->Pointer == NULL); in _mesa_UnmapBufferARB()
1290 ASSERT(bufObj->Offset == 0); in _mesa_UnmapBufferARB()
1291 ASSERT(bufObj->Length == 0); in _mesa_UnmapBufferARB()
1301 struct gl_buffer_object *bufObj; in _mesa_GetBufferParameterivARB() local
1304 bufObj = get_buffer(ctx, "glGetBufferParameterivARB", target); in _mesa_GetBufferParameterivARB()
1305 if (!bufObj) in _mesa_GetBufferParameterivARB()
1310 *params = (GLint) bufObj->Size; in _mesa_GetBufferParameterivARB()
1313 *params = bufObj->Usage; in _mesa_GetBufferParameterivARB()
1316 *params = simplified_access_mode(bufObj->AccessFlags); in _mesa_GetBufferParameterivARB()
1319 *params = _mesa_bufferobj_mapped(bufObj); in _mesa_GetBufferParameterivARB()
1325 *params = bufObj->AccessFlags; in _mesa_GetBufferParameterivARB()
1331 *params = (GLint) bufObj->Offset; in _mesa_GetBufferParameterivARB()
1337 *params = (GLint) bufObj->Length; in _mesa_GetBufferParameterivARB()
1358 struct gl_buffer_object *bufObj; in _mesa_GetBufferParameteri64v() local
1361 bufObj = get_buffer(ctx, "glGetBufferParameteri64v", target); in _mesa_GetBufferParameteri64v()
1362 if (!bufObj) in _mesa_GetBufferParameteri64v()
1367 *params = bufObj->Size; in _mesa_GetBufferParameteri64v()
1370 *params = bufObj->Usage; in _mesa_GetBufferParameteri64v()
1373 *params = simplified_access_mode(bufObj->AccessFlags); in _mesa_GetBufferParameteri64v()
1378 *params = bufObj->AccessFlags; in _mesa_GetBufferParameteri64v()
1381 *params = _mesa_bufferobj_mapped(bufObj); in _mesa_GetBufferParameteri64v()
1386 *params = bufObj->Offset; in _mesa_GetBufferParameteri64v()
1391 *params = bufObj->Length; in _mesa_GetBufferParameteri64v()
1407 struct gl_buffer_object * bufObj; in _mesa_GetBufferPointervARB() local
1415 bufObj = get_buffer(ctx, "glGetBufferPointervARB", target); in _mesa_GetBufferPointervARB()
1416 if (!bufObj) in _mesa_GetBufferPointervARB()
1419 *params = bufObj->Pointer; in _mesa_GetBufferPointervARB()
1511 struct gl_buffer_object *bufObj; in _mesa_MapBufferRange() local
1567 bufObj = get_buffer(ctx, "glMapBufferRange", target); in _mesa_MapBufferRange()
1568 if (!bufObj) in _mesa_MapBufferRange()
1571 if (offset + length > bufObj->Size) { in _mesa_MapBufferRange()
1577 if (_mesa_bufferobj_mapped(bufObj)) { in _mesa_MapBufferRange()
1583 if (!bufObj->Size) { in _mesa_MapBufferRange()
1592 bufObj->Pointer = &dummy; in _mesa_MapBufferRange()
1593 bufObj->Length = length; in _mesa_MapBufferRange()
1594 bufObj->Offset = offset; in _mesa_MapBufferRange()
1595 bufObj->AccessFlags = access; in _mesa_MapBufferRange()
1596 return bufObj->Pointer; in _mesa_MapBufferRange()
1600 map = ctx->Driver.MapBufferRange(ctx, offset, length, access, bufObj); in _mesa_MapBufferRange()
1609 ASSERT(bufObj->Pointer == map); in _mesa_MapBufferRange()
1610 ASSERT(bufObj->Length == length); in _mesa_MapBufferRange()
1611 ASSERT(bufObj->Offset == offset); in _mesa_MapBufferRange()
1612 ASSERT(bufObj->AccessFlags == access); in _mesa_MapBufferRange()
1626 struct gl_buffer_object *bufObj; in _mesa_FlushMappedBufferRange() local
1647 bufObj = get_buffer(ctx, "glFlushMappedBufferRange", target); in _mesa_FlushMappedBufferRange()
1648 if (!bufObj) in _mesa_FlushMappedBufferRange()
1651 if (!_mesa_bufferobj_mapped(bufObj)) { in _mesa_FlushMappedBufferRange()
1658 if ((bufObj->AccessFlags & GL_MAP_FLUSH_EXPLICIT_BIT) == 0) { in _mesa_FlushMappedBufferRange()
1664 if (offset + length > bufObj->Length) { in _mesa_FlushMappedBufferRange()
1667 (long)offset, (long)length, (long)bufObj->Length); in _mesa_FlushMappedBufferRange()
1671 ASSERT(bufObj->AccessFlags & GL_MAP_WRITE_BIT); in _mesa_FlushMappedBufferRange()
1674 ctx->Driver.FlushMappedBufferRange(ctx, offset, length, bufObj); in _mesa_FlushMappedBufferRange()
1682 struct gl_buffer_object *bufObj; in buffer_object_purgeable() local
1685 bufObj = _mesa_lookup_bufferobj(ctx, name); in buffer_object_purgeable()
1686 if (!bufObj) { in buffer_object_purgeable()
1691 if (!_mesa_is_bufferobj(bufObj)) { in buffer_object_purgeable()
1696 if (bufObj->Purgeable) { in buffer_object_purgeable()
1702 bufObj->Purgeable = GL_TRUE; in buffer_object_purgeable()
1706 retval = ctx->Driver.BufferObjectPurgeable(ctx, bufObj, option); in buffer_object_purgeable()
1715 struct gl_renderbuffer *bufObj; in renderbuffer_purgeable() local
1718 bufObj = _mesa_lookup_renderbuffer(ctx, name); in renderbuffer_purgeable()
1719 if (!bufObj) { in renderbuffer_purgeable()
1725 if (bufObj->Purgeable) { in renderbuffer_purgeable()
1731 bufObj->Purgeable = GL_TRUE; in renderbuffer_purgeable()
1735 retval = ctx->Driver.RenderObjectPurgeable(ctx, bufObj, option); in renderbuffer_purgeable()
1744 struct gl_texture_object *bufObj; in texture_object_purgeable() local
1747 bufObj = _mesa_lookup_texture(ctx, name); in texture_object_purgeable()
1748 if (!bufObj) { in texture_object_purgeable()
1754 if (bufObj->Purgeable) { in texture_object_purgeable()
1760 bufObj->Purgeable = GL_TRUE; in texture_object_purgeable()
1764 retval = ctx->Driver.TextureObjectPurgeable(ctx, bufObj, option); in texture_object_purgeable()
1825 struct gl_buffer_object *bufObj; in buffer_object_unpurgeable() local
1828 bufObj = _mesa_lookup_bufferobj(ctx, name); in buffer_object_unpurgeable()
1829 if (!bufObj) { in buffer_object_unpurgeable()
1835 if (! bufObj->Purgeable) { in buffer_object_unpurgeable()
1842 bufObj->Purgeable = GL_FALSE; in buffer_object_unpurgeable()
1846 retval = ctx->Driver.BufferObjectUnpurgeable(ctx, bufObj, option); in buffer_object_unpurgeable()
1855 struct gl_renderbuffer *bufObj; in renderbuffer_unpurgeable() local
1858 bufObj = _mesa_lookup_renderbuffer(ctx, name); in renderbuffer_unpurgeable()
1859 if (!bufObj) { in renderbuffer_unpurgeable()
1865 if (! bufObj->Purgeable) { in renderbuffer_unpurgeable()
1872 bufObj->Purgeable = GL_FALSE; in renderbuffer_unpurgeable()
1876 retval = ctx->Driver.RenderObjectUnpurgeable(ctx, bufObj, option); in renderbuffer_unpurgeable()
1885 struct gl_texture_object *bufObj; in texture_object_unpurgeable() local
1888 bufObj = _mesa_lookup_texture(ctx, name); in texture_object_unpurgeable()
1889 if (!bufObj) { in texture_object_unpurgeable()
1895 if (! bufObj->Purgeable) { in texture_object_unpurgeable()
1902 bufObj->Purgeable = GL_FALSE; in texture_object_unpurgeable()
1906 retval = ctx->Driver.TextureObjectUnpurgeable(ctx, bufObj, option); in texture_object_unpurgeable()
1956 struct gl_buffer_object *bufObj = _mesa_lookup_bufferobj(ctx, name); in get_buffer_object_parameteriv() local
1957 if (!bufObj) { in get_buffer_object_parameteriv()
1965 *params = bufObj->Purgeable; in get_buffer_object_parameteriv()
2058 struct gl_buffer_object *bufObj, in set_ubo_binding() argument
2066 if (binding->BufferObject == bufObj && in set_ubo_binding()
2075 _mesa_reference_buffer_object(ctx, &binding->BufferObject, bufObj); in set_ubo_binding()
2091 struct gl_buffer_object *bufObj, in bind_buffer_range_uniform_buffer() argument
2107 if (bufObj == ctx->Shared->NullBufferObj) { in bind_buffer_range_uniform_buffer()
2112 _mesa_reference_buffer_object(ctx, &ctx->UniformBuffer, bufObj); in bind_buffer_range_uniform_buffer()
2113 set_ubo_binding(ctx, index, bufObj, offset, size, GL_FALSE); in bind_buffer_range_uniform_buffer()
2124 struct gl_buffer_object *bufObj) in bind_buffer_base_uniform_buffer() argument
2131 _mesa_reference_buffer_object(ctx, &ctx->UniformBuffer, bufObj); in bind_buffer_base_uniform_buffer()
2132 if (bufObj == ctx->Shared->NullBufferObj) in bind_buffer_base_uniform_buffer()
2133 set_ubo_binding(ctx, index, bufObj, -1, -1, GL_TRUE); in bind_buffer_base_uniform_buffer()
2135 set_ubo_binding(ctx, index, bufObj, 0, 0, GL_TRUE); in bind_buffer_base_uniform_buffer()
2143 struct gl_buffer_object *bufObj; in _mesa_BindBufferRange() local
2146 bufObj = ctx->Shared->NullBufferObj; in _mesa_BindBufferRange()
2148 bufObj = _mesa_lookup_bufferobj(ctx, buffer); in _mesa_BindBufferRange()
2150 if (!handle_bind_buffer_gen(ctx, target, buffer, &bufObj)) in _mesa_BindBufferRange()
2153 if (!bufObj) { in _mesa_BindBufferRange()
2165 if (offset + size > bufObj->Size) { in _mesa_BindBufferRange()
2168 (int) (offset + size), (int) (bufObj->Size)); in _mesa_BindBufferRange()
2174 _mesa_bind_buffer_range_transform_feedback(ctx, index, bufObj, in _mesa_BindBufferRange()
2178 bind_buffer_range_uniform_buffer(ctx, index, bufObj, offset, size); in _mesa_BindBufferRange()
2190 struct gl_buffer_object *bufObj; in _mesa_BindBufferBase() local
2193 bufObj = ctx->Shared->NullBufferObj; in _mesa_BindBufferBase()
2195 bufObj = _mesa_lookup_bufferobj(ctx, buffer); in _mesa_BindBufferBase()
2197 if (!handle_bind_buffer_gen(ctx, target, buffer, &bufObj)) in _mesa_BindBufferBase()
2200 if (!bufObj) { in _mesa_BindBufferBase()
2234 _mesa_bind_buffer_base_transform_feedback(ctx, index, bufObj); in _mesa_BindBufferBase()
2237 bind_buffer_base_uniform_buffer(ctx, index, bufObj); in _mesa_BindBufferBase()
2250 struct gl_buffer_object *bufObj; in _mesa_InvalidateBufferSubData() local
2253 bufObj = _mesa_lookup_bufferobj(ctx, buffer); in _mesa_InvalidateBufferSubData()
2254 if (!bufObj) { in _mesa_InvalidateBufferSubData()
2267 if (end < 0 || end > bufObj->Size) { in _mesa_InvalidateBufferSubData()
2279 if (_mesa_bufferobj_mapped(bufObj)) { in _mesa_InvalidateBufferSubData()
2280 const GLintptr mapEnd = bufObj->Offset + bufObj->Length; in _mesa_InvalidateBufferSubData()
2290 if (!(end <= bufObj->Offset || offset >= mapEnd)) { in _mesa_InvalidateBufferSubData()
2308 struct gl_buffer_object *bufObj; in _mesa_InvalidateBufferData() local
2310 bufObj = _mesa_lookup_bufferobj(ctx, buffer); in _mesa_InvalidateBufferData()
2311 if (!bufObj) { in _mesa_InvalidateBufferData()
2324 if (_mesa_bufferobj_mapped(bufObj)) { in _mesa_InvalidateBufferData()