/external/mesa3d/src/mesa/main/ |
D | bufferobj.c | 196 struct gl_buffer_object **bufObj = get_buffer_target(ctx, target); in get_buffer() local 198 if (!bufObj) { in get_buffer() 203 if (!_mesa_is_bufferobj(*bufObj)) { in get_buffer() 208 return *bufObj; in get_buffer() 299 const struct gl_buffer_object *bufObj, in buffer_object_subdata_range_good() argument 313 if (offset + size > bufObj->Size) { in buffer_object_subdata_range_good() 318 (unsigned long) bufObj->Size); in buffer_object_subdata_range_good() 322 if (bufObj->Mappings[MAP_USER].AccessFlags & GL_MAP_PERSISTENT_BIT) in buffer_object_subdata_range_good() 326 if (bufferobj_range_mapped(bufObj, offset, size)) { in buffer_object_subdata_range_good() 334 if (_mesa_bufferobj_mapped(bufObj, MAP_USER)) { in buffer_object_subdata_range_good() [all …]
|
D | objectpurge.c | 47 struct gl_buffer_object *bufObj; in buffer_object_purgeable() local 50 bufObj = _mesa_lookup_bufferobj(ctx, name); in buffer_object_purgeable() 51 if (!bufObj) { in buffer_object_purgeable() 56 if (!_mesa_is_bufferobj(bufObj)) { in buffer_object_purgeable() 61 if (bufObj->Purgeable) { in buffer_object_purgeable() 67 bufObj->Purgeable = GL_TRUE; in buffer_object_purgeable() 71 retval = ctx->Driver.BufferObjectPurgeable(ctx, bufObj, option); in buffer_object_purgeable() 80 struct gl_renderbuffer *bufObj; in renderbuffer_purgeable() local 83 bufObj = _mesa_lookup_renderbuffer(ctx, name); in renderbuffer_purgeable() 84 if (!bufObj) { in renderbuffer_purgeable() [all …]
|
D | bufferobj.h | 119 struct gl_buffer_object *bufObj); 124 struct gl_buffer_object *bufObj); 129 struct gl_buffer_object *bufObj) in _mesa_reference_buffer_object() argument 131 if (*ptr != bufObj) in _mesa_reference_buffer_object() 132 _mesa_reference_buffer_object_(ctx, ptr, bufObj); in _mesa_reference_buffer_object() 142 _mesa_buffer_storage(struct gl_context *ctx, struct gl_buffer_object *bufObj, 147 _mesa_buffer_data(struct gl_context *ctx, struct gl_buffer_object *bufObj, 152 _mesa_buffer_sub_data(struct gl_context *ctx, struct gl_buffer_object *bufObj, 158 struct gl_buffer_object *bufObj); 169 struct gl_buffer_object *bufObj, [all …]
|
D | transformfeedback.c | 523 struct gl_buffer_object *bufObj, in bind_buffer_range() argument 536 bufObj); in bind_buffer_range() 540 _mesa_set_transform_feedback_binding(ctx, obj, index, bufObj, offset, size); in bind_buffer_range() 554 struct gl_buffer_object *bufObj, in _mesa_bind_buffer_range_transform_feedback() argument 609 if (size <= 0 && (dsa || bufObj != ctx->Shared->NullBufferObj)) { in _mesa_bind_buffer_range_transform_feedback() 623 bind_buffer_range(ctx, obj, index, bufObj, offset, size, dsa); in _mesa_bind_buffer_range_transform_feedback() 637 struct gl_buffer_object *bufObj, in _mesa_bind_buffer_base_transform_feedback() argument 654 bind_buffer_range(ctx, obj, index, bufObj, 0, 0, dsa); in _mesa_bind_buffer_base_transform_feedback() 687 struct gl_buffer_object *bufObj; in lookup_transform_feedback_bufferobj_err() local 693 bufObj = ctx->Shared->NullBufferObj; in lookup_transform_feedback_bufferobj_err() [all …]
|
D | transformfeedback.h | 70 struct gl_buffer_object *bufObj, 78 struct gl_buffer_object *bufObj, 140 struct gl_buffer_object *bufObj, in _mesa_set_transform_feedback_binding() argument 143 _mesa_reference_buffer_object(ctx, &tfObj->Buffers[index], bufObj); in _mesa_set_transform_feedback_binding() 145 tfObj->BufferNames[index] = bufObj->Name; in _mesa_set_transform_feedback_binding() 149 if (bufObj != ctx->Shared->NullBufferObj) in _mesa_set_transform_feedback_binding() 150 bufObj->UsageHistory |= USAGE_TRANSFORM_FEEDBACK_BUFFER; in _mesa_set_transform_feedback_binding()
|
D | arrayobj.c | 707 struct gl_buffer_object *bufObj; in _mesa_VertexArrayElementBuffer() local 727 bufObj = _mesa_lookup_bufferobj_err(ctx, buffer, in _mesa_VertexArrayElementBuffer() 730 bufObj = ctx->Shared->NullBufferObj; in _mesa_VertexArrayElementBuffer() 732 if (bufObj) in _mesa_VertexArrayElementBuffer() 733 _mesa_reference_buffer_object(ctx, &vao->IndexBufferObj, bufObj); in _mesa_VertexArrayElementBuffer()
|
D | objectlabel.c | 143 struct gl_buffer_object *bufObj = _mesa_lookup_bufferobj(ctx, name); in get_label_pointer() local 144 if (bufObj) in get_label_pointer() 145 labelPtr = &bufObj->Label; in get_label_pointer()
|
D | shared.c | 204 struct gl_buffer_object *bufObj = (struct gl_buffer_object *) data; in delete_bufferobj_cb() local 207 _mesa_buffer_unmap_all_mappings(ctx, bufObj); in delete_bufferobj_cb() 208 _mesa_reference_buffer_object(ctx, &bufObj, NULL); in delete_bufferobj_cb()
|
D | teximage.c | 5045 struct gl_buffer_object *bufObj, in texture_buffer_range() argument 5075 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, bufObj); in texture_buffer_range() 5094 if (bufObj) { in texture_buffer_range() 5095 bufObj->UsageHistory |= USAGE_TEXTURE_BUFFER; in texture_buffer_range() 5125 struct gl_buffer_object *bufObj, in check_texture_buffer_range() argument 5147 if (offset + size > bufObj->Size) { in check_texture_buffer_range() 5150 (int) offset, (int) size, (int) bufObj->Size); in check_texture_buffer_range() 5174 struct gl_buffer_object *bufObj; in _mesa_TexBuffer() local 5185 bufObj = _mesa_lookup_bufferobj_err(ctx, buffer, "glTexBuffer"); in _mesa_TexBuffer() 5186 if (!bufObj) in _mesa_TexBuffer() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_array.c | 345 const struct gl_buffer_object *bufObj; in is_interleaved_arrays() local 353 bufObj = array->BufferObj; in is_interleaved_arrays() 358 firstBufObj = bufObj; in is_interleaved_arrays() 359 userSpaceBuffer = !bufObj || !bufObj->Name; in is_interleaved_arrays() 366 if (bufObj != firstBufObj) in is_interleaved_arrays() 372 if ((!_mesa_is_bufferobj(bufObj)) != userSpaceBuffer) in is_interleaved_arrays()
|
D | st_cb_bufferobjects.c | 530 struct gl_buffer_object *bufObj) in st_clear_buffer_subdata() argument 533 struct st_buffer_object *buf = st_buffer_object(bufObj); in st_clear_buffer_subdata() 538 clearValue, clearValueSize, bufObj); in st_clear_buffer_subdata()
|
/external/mesa3d/src/mesa/vbo/ |
D | vbo_exec_array.c | 202 struct gl_buffer_object *bufObj = binding->BufferObj; in print_draw_arrays() local 208 array->Ptr, bufObj->Name); in print_draw_arrays() 210 if (_mesa_is_bufferobj(bufObj)) { in print_draw_arrays() 211 GLubyte *p = ctx->Driver.MapBufferRange(ctx, 0, bufObj->Size, in print_draw_arrays() 212 GL_MAP_READ_BIT, bufObj, in print_draw_arrays() 226 ctx->Driver.UnmapBuffer(ctx, bufObj, MAP_INTERNAL); in print_draw_arrays()
|
/external/deqp/framework/opengl/simplereference/ |
D | sglrReferenceContext.cpp | 2469 rc::DataBuffer* bufObj = DE_NULL; in bindBuffer() local 2473 bufObj = m_buffers.find(buffer); in bindBuffer() 2474 if (!bufObj) in bindBuffer() 2476 bufObj = new DataBuffer(buffer); in bindBuffer() 2477 m_buffers.insert(bufObj); in bindBuffer() 2481 setBufferBinding(target, bufObj); in bindBuffer() 2499 DataBuffer* bufObj = DE_NULL; in deleteBuffers() local 2504 bufObj = m_buffers.find(buffer); in deleteBuffers() 2506 if (bufObj) in deleteBuffers() 2507 deleteBuffer(bufObj); in deleteBuffers()
|