/external/mesa3d/src/mesa/main/ |
D | bufferobj.c | 197 struct gl_buffer_object **bufObj = get_buffer_target(ctx, target); in get_buffer() local 199 if (!bufObj) { in get_buffer() 204 if (!_mesa_is_bufferobj(*bufObj)) { in get_buffer() 209 return *bufObj; in get_buffer() 300 const struct gl_buffer_object *bufObj, in buffer_object_subdata_range_good() argument 314 if (offset + size > bufObj->Size) { in buffer_object_subdata_range_good() 319 (unsigned long) bufObj->Size); in buffer_object_subdata_range_good() 323 if (bufObj->Mappings[MAP_USER].AccessFlags & GL_MAP_PERSISTENT_BIT) in buffer_object_subdata_range_good() 327 if (bufferobj_range_mapped(bufObj, offset, size)) { in buffer_object_subdata_range_good() 335 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 | transformfeedback.h | 71 GLuint index, struct gl_buffer_object *bufObj, 78 struct gl_buffer_object *bufObj, 158 struct gl_buffer_object *bufObj, in _mesa_set_transform_feedback_binding() argument 161 _mesa_reference_buffer_object(ctx, &tfObj->Buffers[index], bufObj); in _mesa_set_transform_feedback_binding() 163 tfObj->BufferNames[index] = bufObj->Name; in _mesa_set_transform_feedback_binding() 167 if (bufObj != ctx->Shared->NullBufferObj) in _mesa_set_transform_feedback_binding() 168 bufObj->UsageHistory |= USAGE_TRANSFORM_FEEDBACK_BUFFER; in _mesa_set_transform_feedback_binding() 174 GLuint index, struct gl_buffer_object *bufObj, in _mesa_bind_buffer_range_xfb() argument 185 bufObj); in _mesa_bind_buffer_range_xfb() 188 _mesa_set_transform_feedback_binding(ctx, obj, index, bufObj, offset, size); in _mesa_bind_buffer_range_xfb()
|
D | transformfeedback.c | 547 struct gl_buffer_object *bufObj, in bind_buffer_range() argument 560 bufObj); in bind_buffer_range() 564 _mesa_set_transform_feedback_binding(ctx, obj, index, bufObj, offset, size); in bind_buffer_range() 577 GLuint index, struct gl_buffer_object *bufObj, in _mesa_validate_buffer_range_xfb() argument 630 if (size <= 0 && (dsa || bufObj != ctx->Shared->NullBufferObj)) { in _mesa_validate_buffer_range_xfb() 658 struct gl_buffer_object *bufObj, in _mesa_bind_buffer_base_transform_feedback() argument 675 bind_buffer_range(ctx, obj, index, bufObj, 0, 0, dsa); in _mesa_bind_buffer_base_transform_feedback() 708 struct gl_buffer_object *bufObj; in lookup_transform_feedback_bufferobj_err() local 714 bufObj = ctx->Shared->NullBufferObj; in lookup_transform_feedback_bufferobj_err() 716 bufObj = _mesa_lookup_bufferobj(ctx, buffer); in lookup_transform_feedback_bufferobj_err() [all …]
|
D | bufferobj.h | 113 struct gl_buffer_object *bufObj); 118 struct gl_buffer_object *bufObj); 123 struct gl_buffer_object *bufObj) in _mesa_reference_buffer_object() argument 125 if (*ptr != bufObj) in _mesa_reference_buffer_object() 126 _mesa_reference_buffer_object_(ctx, ptr, bufObj); in _mesa_reference_buffer_object() 136 _mesa_buffer_data(struct gl_context *ctx, struct gl_buffer_object *bufObj, 141 _mesa_buffer_sub_data(struct gl_context *ctx, struct gl_buffer_object *bufObj, 146 struct gl_buffer_object *bufObj); 153 struct gl_buffer_object *bufObj);
|
D | arrayobj.c | 659 struct gl_buffer_object *bufObj; in vertex_array_element_buffer() local 684 bufObj = _mesa_lookup_bufferobj_err(ctx, buffer, in vertex_array_element_buffer() 687 bufObj = _mesa_lookup_bufferobj(ctx, buffer); in vertex_array_element_buffer() 690 bufObj = ctx->Shared->NullBufferObj; in vertex_array_element_buffer() 693 if (bufObj) in vertex_array_element_buffer() 694 _mesa_reference_buffer_object(ctx, &vao->IndexBufferObj, bufObj); in vertex_array_element_buffer()
|
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 | teximage.c | 5429 struct gl_buffer_object *bufObj, in texture_buffer_range() argument 5471 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, bufObj); in texture_buffer_range() 5490 if (bufObj) { in texture_buffer_range() 5491 bufObj->UsageHistory |= USAGE_TEXTURE_BUFFER; in texture_buffer_range() 5521 struct gl_buffer_object *bufObj, in check_texture_buffer_range() argument 5543 if (offset + size > bufObj->Size) { in check_texture_buffer_range() 5546 (int) offset, (int) size, (int) bufObj->Size); in check_texture_buffer_range() 5570 struct gl_buffer_object *bufObj; in _mesa_TexBuffer() local 5581 bufObj = _mesa_lookup_bufferobj_err(ctx, buffer, "glTexBuffer"); in _mesa_TexBuffer() 5582 if (!bufObj) in _mesa_TexBuffer() [all …]
|
D | shared.c | 218 struct gl_buffer_object *bufObj = (struct gl_buffer_object *) data; in delete_bufferobj_cb() local 221 _mesa_buffer_unmap_all_mappings(ctx, bufObj); in delete_bufferobj_cb() 222 _mesa_reference_buffer_object(ctx, &bufObj, NULL); in delete_bufferobj_cb()
|
D | dd.h | 1084 struct gl_buffer_object *bufObj);
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_array.c | 330 const struct gl_buffer_object *bufObj; in is_interleaved_arrays() local 343 bufObj = array->BufferObj; in is_interleaved_arrays() 348 firstBufObj = bufObj; in is_interleaved_arrays() 349 userSpaceBuffer = !bufObj || !bufObj->Name; in is_interleaved_arrays() 356 if (bufObj != firstBufObj) in is_interleaved_arrays() 362 if ((!_mesa_is_bufferobj(bufObj)) != userSpaceBuffer) in is_interleaved_arrays()
|
D | st_cb_bufferobjects.c | 382 struct gl_buffer_object *bufObj) in st_bufferobj_data_mem() argument 384 return bufferobj_data(ctx, target, size, NULL, memObj, offset, usage, 0, bufObj); in st_bufferobj_data_mem() 563 struct gl_buffer_object *bufObj) in st_clear_buffer_subdata() argument 566 struct st_buffer_object *buf = st_buffer_object(bufObj); in st_clear_buffer_subdata() 571 clearValue, clearValueSize, bufObj); in st_clear_buffer_subdata()
|
/external/mesa3d/src/mesa/vbo/ |
D | vbo_exec_array.c | 256 struct gl_buffer_object *bufObj = binding->BufferObj; in print_draw_arrays() local 262 array->Ptr, bufObj->Name); in print_draw_arrays() 264 if (_mesa_is_bufferobj(bufObj)) { in print_draw_arrays() 265 GLubyte *p = ctx->Driver.MapBufferRange(ctx, 0, bufObj->Size, in print_draw_arrays() 266 GL_MAP_READ_BIT, bufObj, in print_draw_arrays() 280 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()
|