Lines Matching refs:MAP_USER
116 _mesa_bufferobj_mapped(obj, MAP_USER) ? in _mesa_bufferobj_subdata()
272 bool is_mapped = _mesa_bufferobj_mapped(obj, MAP_USER); in bufferobj_data()
839 if (_mesa_bufferobj_mapped(obj, MAP_USER)) { in bufferobj_range_mapped()
841 const GLintptr mapEnd = obj->Mappings[MAP_USER].Offset + in bufferobj_range_mapped()
842 obj->Mappings[MAP_USER].Length; in bufferobj_range_mapped()
844 if (!(end <= obj->Mappings[MAP_USER].Offset || offset >= mapEnd)) { in bufferobj_range_mapped()
893 if (bufObj->Mappings[MAP_USER].AccessFlags & GL_MAP_PERSISTENT_BIT) in buffer_object_subdata_range_good()
905 if (_mesa_bufferobj_mapped(bufObj, MAP_USER)) { in buffer_object_subdata_range_good()
3055 GLboolean status = _mesa_bufferobj_unmap(ctx, bufObj, MAP_USER); in unmap_buffer()
3056 bufObj->Mappings[MAP_USER].AccessFlags = 0; in unmap_buffer()
3057 assert(bufObj->Mappings[MAP_USER].Pointer == NULL); in unmap_buffer()
3058 assert(bufObj->Mappings[MAP_USER].Offset == 0); in unmap_buffer()
3059 assert(bufObj->Mappings[MAP_USER].Length == 0); in unmap_buffer()
3071 if (!_mesa_bufferobj_mapped(bufObj, MAP_USER)) { in validate_and_unmap_buffer()
3078 if (bufObj->Mappings[MAP_USER].AccessFlags != GL_READ_ONLY_ARB) { in validate_and_unmap_buffer()
3079 GLubyte *buf = (GLubyte *) bufObj->Mappings[MAP_USER].Pointer; in validate_and_unmap_buffer()
3094 if (bufObj->Mappings[MAP_USER].AccessFlags & GL_MAP_WRITE_BIT) { in validate_and_unmap_buffer()
3096 GLubyte *b = (GLubyte *) bufObj->Mappings[MAP_USER].Pointer; in validate_and_unmap_buffer()
3182 bufObj->Mappings[MAP_USER].AccessFlags); in get_buffer_parameter()
3185 *params = _mesa_bufferobj_mapped(bufObj, MAP_USER); in get_buffer_parameter()
3190 *params = bufObj->Mappings[MAP_USER].AccessFlags; in get_buffer_parameter()
3195 *params = bufObj->Mappings[MAP_USER].Offset; in get_buffer_parameter()
3200 *params = bufObj->Mappings[MAP_USER].Length; in get_buffer_parameter()
3344 *params = bufObj->Mappings[MAP_USER].Pointer; in _mesa_GetBufferPointerv()
3364 *params = bufObj->Mappings[MAP_USER].Pointer; in _mesa_GetNamedBufferPointerv()
3389 *params = bufObj->Mappings[MAP_USER].Pointer; in _mesa_GetNamedBufferPointervEXT()
3713 if (_mesa_bufferobj_mapped(bufObj, MAP_USER)) { in validate_map_buffer_range()
3746 MAP_USER); in map_buffer_range()
3755 assert(bufObj->Mappings[MAP_USER].Pointer == map); in map_buffer_range()
3756 assert(bufObj->Mappings[MAP_USER].Length == length); in map_buffer_range()
3757 assert(bufObj->Mappings[MAP_USER].Offset == offset); in map_buffer_range()
3758 assert(bufObj->Mappings[MAP_USER].AccessFlags == access); in map_buffer_range()
3773 GLubyte *b = (GLubyte *) bufObj->Mappings[MAP_USER].Pointer; in map_buffer_range()
3782 GLubyte *buf = (GLubyte *) bufObj->Mappings[MAP_USER].Pointer; in map_buffer_range()
4050 if (!_mesa_bufferobj_mapped(bufObj, MAP_USER)) { in flush_mapped_buffer_range()
4057 if ((bufObj->Mappings[MAP_USER].AccessFlags & in flush_mapped_buffer_range()
4064 if (offset + length > bufObj->Mappings[MAP_USER].Length) { in flush_mapped_buffer_range()
4068 (long) bufObj->Mappings[MAP_USER].Length); in flush_mapped_buffer_range()
4072 assert(bufObj->Mappings[MAP_USER].AccessFlags & GL_MAP_WRITE_BIT); in flush_mapped_buffer_range()
4075 MAP_USER); in flush_mapped_buffer_range()
4087 MAP_USER); in _mesa_FlushMappedBufferRange_no_error()
4114 MAP_USER); in _mesa_FlushMappedNamedBufferRange_no_error()
5189 if (!obj->buffer || _mesa_bufferobj_mapped(obj, MAP_USER)) in bufferobj_invalidate()
5255 if (!(bufObj->Mappings[MAP_USER].AccessFlags & GL_MAP_PERSISTENT_BIT) && in _mesa_InvalidateBufferSubData()