Home
last modified time | relevance | path

Searched refs:bufObj (Results 1 – 14 of 14) sorted by relevance

/external/mesa3d/src/mesa/main/
Dbufferobj.c212 struct gl_buffer_object **bufObj = get_buffer_target(ctx, target); in get_buffer() local
214 if (!bufObj) { in get_buffer()
219 if (!*bufObj) { in get_buffer()
224 return *bufObj; in get_buffer()
315 const struct gl_buffer_object *bufObj, in buffer_object_subdata_range_good() argument
329 if (offset + size > bufObj->Size) { in buffer_object_subdata_range_good()
334 (unsigned long) bufObj->Size); in buffer_object_subdata_range_good()
338 if (bufObj->Mappings[MAP_USER].AccessFlags & GL_MAP_PERSISTENT_BIT) in buffer_object_subdata_range_good()
342 if (bufferobj_range_mapped(bufObj, offset, size)) { in buffer_object_subdata_range_good()
350 if (_mesa_bufferobj_mapped(bufObj, MAP_USER)) { in buffer_object_subdata_range_good()
[all …]
Dobjectpurge.c47 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()
57 if (bufObj->Purgeable) { in buffer_object_purgeable()
63 bufObj->Purgeable = GL_TRUE; in buffer_object_purgeable()
67 retval = ctx->Driver.BufferObjectPurgeable(ctx, bufObj, option); in buffer_object_purgeable()
76 struct gl_renderbuffer *bufObj; in renderbuffer_purgeable() local
79 bufObj = _mesa_lookup_renderbuffer(ctx, name); in renderbuffer_purgeable()
80 if (!bufObj) { in renderbuffer_purgeable()
86 if (bufObj->Purgeable) { in renderbuffer_purgeable()
[all …]
Dtransformfeedback.h71 GLuint index, struct gl_buffer_object *bufObj,
78 struct gl_buffer_object *bufObj,
163 struct gl_buffer_object *bufObj, in _mesa_set_transform_feedback_binding() argument
166 _mesa_reference_buffer_object(ctx, &tfObj->Buffers[index], bufObj); in _mesa_set_transform_feedback_binding()
168 tfObj->BufferNames[index] = bufObj ? bufObj->Name : 0; in _mesa_set_transform_feedback_binding()
172 if (bufObj) in _mesa_set_transform_feedback_binding()
173 bufObj->UsageHistory |= USAGE_TRANSFORM_FEEDBACK_BUFFER; in _mesa_set_transform_feedback_binding()
179 GLuint index, struct gl_buffer_object *bufObj, in _mesa_bind_buffer_range_xfb() argument
190 bufObj); in _mesa_bind_buffer_range_xfb()
193 _mesa_set_transform_feedback_binding(ctx, obj, index, bufObj, offset, size); in _mesa_bind_buffer_range_xfb()
Dtransformfeedback.c555 struct gl_buffer_object *bufObj, in bind_buffer_range() argument
568 bufObj); in bind_buffer_range()
572 _mesa_set_transform_feedback_binding(ctx, obj, index, bufObj, offset, size); in bind_buffer_range()
585 GLuint index, struct gl_buffer_object *bufObj, in _mesa_validate_buffer_range_xfb() argument
638 if (size <= 0 && (dsa || bufObj)) { in _mesa_validate_buffer_range_xfb()
666 struct gl_buffer_object *bufObj, in _mesa_bind_buffer_base_transform_feedback() argument
683 bind_buffer_range(ctx, obj, index, bufObj, 0, 0, dsa); in _mesa_bind_buffer_base_transform_feedback()
717 struct gl_buffer_object *bufObj = NULL; in lookup_transform_feedback_bufferobj_err() local
725 bufObj = _mesa_lookup_bufferobj(ctx, buffer); in lookup_transform_feedback_bufferobj_err()
726 if (!bufObj) { in lookup_transform_feedback_bufferobj_err()
[all …]
Dbufferobj.h103 struct gl_buffer_object *bufObj);
108 struct gl_buffer_object *bufObj);
113 struct gl_buffer_object *bufObj) in _mesa_reference_buffer_object() argument
115 if (*ptr != bufObj) in _mesa_reference_buffer_object()
116 _mesa_reference_buffer_object_(ctx, ptr, bufObj); in _mesa_reference_buffer_object()
126 _mesa_buffer_data(struct gl_context *ctx, struct gl_buffer_object *bufObj,
131 _mesa_buffer_sub_data(struct gl_context *ctx, struct gl_buffer_object *bufObj,
136 struct gl_buffer_object *bufObj);
143 struct gl_buffer_object *bufObj);
Dobjectlabel.c143 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()
Dteximage.c6295 struct gl_buffer_object *bufObj, in texture_buffer_range() argument
6337 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, bufObj); in texture_buffer_range()
6356 if (bufObj) { in texture_buffer_range()
6357 bufObj->UsageHistory |= USAGE_TEXTURE_BUFFER; in texture_buffer_range()
6387 struct gl_buffer_object *bufObj, in check_texture_buffer_range() argument
6409 if (offset + size > bufObj->Size) { in check_texture_buffer_range()
6412 (int) offset, (int) size, (int) bufObj->Size); in check_texture_buffer_range()
6436 struct gl_buffer_object *bufObj; in _mesa_TexBuffer() local
6447 bufObj = _mesa_lookup_bufferobj_err(ctx, buffer, "glTexBuffer"); in _mesa_TexBuffer()
6448 if (!bufObj) in _mesa_TexBuffer()
[all …]
Darrayobj.c1222 struct gl_buffer_object *bufObj; in vertex_array_element_buffer() local
1247 bufObj = _mesa_lookup_bufferobj_err(ctx, buffer, in vertex_array_element_buffer()
1250 bufObj = _mesa_lookup_bufferobj(ctx, buffer); in vertex_array_element_buffer()
1253 if (!bufObj) in vertex_array_element_buffer()
1256 bufObj->UsageHistory |= USAGE_ELEMENT_ARRAY_BUFFER; in vertex_array_element_buffer()
1258 bufObj = NULL; in vertex_array_element_buffer()
1261 _mesa_reference_buffer_object(ctx, &vao->IndexBufferObj, bufObj); in vertex_array_element_buffer()
Dshared.c216 struct gl_buffer_object *bufObj = (struct gl_buffer_object *) data; in delete_bufferobj_cb() local
219 _mesa_buffer_unmap_all_mappings(ctx, bufObj); in delete_bufferobj_cb()
220 _mesa_reference_buffer_object(ctx, &bufObj, NULL); in delete_bufferobj_cb()
Ddraw.c252 struct gl_buffer_object *bufObj = binding->BufferObj; in print_draw_arrays() local
258 array->Ptr, bufObj ? bufObj->Name : 0); in print_draw_arrays()
260 if (bufObj) { in print_draw_arrays()
261 GLubyte *p = bufObj->Mappings[MAP_INTERNAL].Pointer; in print_draw_arrays()
Ddd.h1196 struct gl_buffer_object *bufObj);
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_semaphoreobjects.c89 struct st_buffer_object *bufObj; in st_server_wait_semaphore() local
111 bufObj = st_buffer_object(bufObjs[i]); in st_server_wait_semaphore()
112 if (bufObj->buffer) in st_server_wait_semaphore()
113 pipe->flush_resource(pipe, bufObj->buffer); in st_server_wait_semaphore()
138 struct st_buffer_object *bufObj; in st_server_signal_semaphore() local
145 bufObj = st_buffer_object(bufObjs[i]); in st_server_signal_semaphore()
146 if (bufObj->buffer) in st_server_signal_semaphore()
147 pipe->flush_resource(pipe, bufObj->buffer); in st_server_signal_semaphore()
Dst_cb_bufferobjects.c425 struct gl_buffer_object *bufObj) in st_bufferobj_data_mem() argument
427 return bufferobj_data(ctx, target, size, NULL, memObj, offset, usage, 0, bufObj); in st_bufferobj_data_mem()
624 struct gl_buffer_object *bufObj) in st_clear_buffer_subdata() argument
627 struct st_buffer_object *buf = st_buffer_object(bufObj); in st_clear_buffer_subdata()
632 clearValue, clearValueSize, bufObj); in st_clear_buffer_subdata()
/external/deqp/framework/opengl/simplereference/
DsglrReferenceContext.cpp2508 rc::DataBuffer* bufObj = DE_NULL; in bindBuffer() local
2512 bufObj = m_buffers.find(buffer); in bindBuffer()
2513 if (!bufObj) in bindBuffer()
2515 bufObj = new DataBuffer(buffer); in bindBuffer()
2516 m_buffers.insert(bufObj); in bindBuffer()
2520 setBufferBinding(target, bufObj); in bindBuffer()
2538 DataBuffer* bufObj = DE_NULL; in deleteBuffers() local
2543 bufObj = m_buffers.find(buffer); in deleteBuffers()
2545 if (bufObj) in deleteBuffers()
2546 deleteBuffer(bufObj); in deleteBuffers()