Home
last modified time | relevance | path

Searched refs:BufferObj (Results 1 – 25 of 48) sorted by relevance

12

/external/mesa3d/src/mesa/main/
Dpbo.c80 if (!_mesa_is_bufferobj(pack->BufferObj)) { in _mesa_validate_pbo_access()
85 size = pack->BufferObj->Size; in _mesa_validate_pbo_access()
146 if (_mesa_is_bufferobj(unpack->BufferObj)) { in _mesa_map_pbo_source()
149 unpack->BufferObj->Size, in _mesa_map_pbo_source()
151 unpack->BufferObj); in _mesa_map_pbo_source()
187 if (_mesa_is_bufferobj(unpack->BufferObj)) { in _mesa_map_validate_pbo_source()
198 if (!_mesa_is_bufferobj(unpack->BufferObj)) { in _mesa_map_validate_pbo_source()
203 if (_mesa_bufferobj_mapped(unpack->BufferObj)) { in _mesa_map_validate_pbo_source()
222 if (_mesa_is_bufferobj(unpack->BufferObj)) { in _mesa_unmap_pbo_source()
223 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj); in _mesa_unmap_pbo_source()
[all …]
Dtexgetimage.c551 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) { in _mesa_get_teximage()
559 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size, in _mesa_get_teximage()
560 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj); in _mesa_get_teximage()
588 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) { in _mesa_get_teximage()
589 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj); in _mesa_get_teximage()
610 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) { in _mesa_get_compressed_teximage()
613 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size, in _mesa_get_compressed_teximage()
614 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj); in _mesa_get_compressed_teximage()
655 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) { in _mesa_get_compressed_teximage()
656 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj); in _mesa_get_compressed_teximage()
[all …]
Dpixel.c158 &ctx->DefaultPacking.BufferObj, in validate_pbo_access()
159 pack->BufferObj); in validate_pbo_access()
166 &ctx->DefaultPacking.BufferObj, in validate_pbo_access()
170 if (_mesa_is_bufferobj(pack->BufferObj)) { in validate_pbo_access()
212 if (_mesa_is_bufferobj(ctx->Unpack.BufferObj)) { in _mesa_PixelMapfv()
254 if (_mesa_is_bufferobj(ctx->Unpack.BufferObj)) { in _mesa_PixelMapuiv()
310 if (_mesa_is_bufferobj(ctx->Unpack.BufferObj)) { in _mesa_PixelMapusv()
361 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) { in _mesa_GetnPixelMapfvARB()
412 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) { in _mesa_GetnPixelMapuivARB()
463 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) { in _mesa_GetnPixelMapusvARB()
Ddrawpix.c149 if (_mesa_is_bufferobj(ctx->Unpack.BufferObj)) { in _mesa_DrawPixels()
157 if (_mesa_bufferobj_mapped(ctx->Unpack.BufferObj)) { in _mesa_DrawPixels()
330 if (_mesa_is_bufferobj(ctx->Unpack.BufferObj)) { in _mesa_Bitmap()
339 if (_mesa_bufferobj_mapped(ctx->Unpack.BufferObj)) { in _mesa_Bitmap()
Dapi_arrayelt.c1480 check_vbo(actx, aa->array->BufferObj); in _ae_update_state()
1486 check_vbo(actx, aa->array->BufferObj); in _ae_update_state()
1492 check_vbo(actx, aa->array->BufferObj); in _ae_update_state()
1498 check_vbo(actx, aa->array->BufferObj); in _ae_update_state()
1504 check_vbo(actx, aa->array->BufferObj); in _ae_update_state()
1510 check_vbo(actx, aa->array->BufferObj); in _ae_update_state()
1525 check_vbo(actx, at->array->BufferObj); in _ae_update_state()
1560 check_vbo(actx, at->array->BufferObj); in _ae_update_state()
1573 check_vbo(actx, aa->array->BufferObj); in _ae_update_state()
1579 check_vbo(actx, aa->array->BufferObj); in _ae_update_state()
[all …]
Dpixelstore.c274 _mesa_reference_buffer_object(ctx, &ctx->Pack.BufferObj, in _mesa_init_pixelstore()
287 _mesa_reference_buffer_object(ctx, &ctx->Unpack.BufferObj, in _mesa_init_pixelstore()
307 _mesa_reference_buffer_object(ctx, &ctx->DefaultPacking.BufferObj, in _mesa_init_pixelstore()
/external/mesa3d/src/mesa/vbo/
Dvbo_save.c74 array->BufferObj = NULL; in vbo_save_init()
75 _mesa_reference_buffer_object(ctx, &arrays->BufferObj, in vbo_save_init()
76 vbo->currval[VBO_ATTRIB_POS+i].BufferObj); in vbo_save_init()
86 array->BufferObj = NULL; in vbo_save_init()
87 _mesa_reference_buffer_object(ctx, &array->BufferObj, in vbo_save_init()
88 vbo->currval[VBO_ATTRIB_GENERIC0+i].BufferObj); in vbo_save_init()
116 _mesa_reference_buffer_object(ctx, &save->arrays[i].BufferObj, NULL); in vbo_save_destroy()
Dvbo_context.c71 _mesa_reference_buffer_object(ctx, &cl->BufferObj, in init_legacy_currval()
98 _mesa_reference_buffer_object(ctx, &cl->BufferObj, in init_generic_currval()
145 _mesa_reference_buffer_object(ctx, &cl->BufferObj, in init_mat_currval()
220 _mesa_reference_buffer_object(ctx, &vbo->currval[i].BufferObj, NULL); in _vbo_DestroyContext()
Dvbo_exec_array.c54 struct gl_buffer_object *obj = inputs[i]->BufferObj; in check_buffers_are_unmapped()
230 if (_mesa_is_bufferobj(array->BufferObj)) { in check_array_data()
231 if (!array->BufferObj->Pointer) { in check_array_data()
233 array->BufferObj->Pointer = in check_array_data()
234 ctx->Driver.MapBufferRange(ctx, 0, array->BufferObj->Size, in check_array_data()
235 GL_MAP_READ_BIT, array->BufferObj); in check_array_data()
237 data = ADD_POINTERS(data, array->BufferObj->Pointer); in check_array_data()
253 array->Ptr, array->BufferObj->Name); in check_array_data()
274 _mesa_is_bufferobj(array->BufferObj) && in unmap_array_buffer()
275 _mesa_bufferobj_mapped(array->BufferObj)) { in unmap_array_buffer()
[all …]
Dvbo_rebase.c82 arrays[i]->BufferObj->Name == 0) in REBASE()
93 if (arrays[i]->BufferObj->Name != 0) in vbo_any_varyings_in_vbos()
/external/skia/src/gpu/gl/
DGrGLCreateNullInterface.cpp21 class BufferObj { class
25 BufferObj(GrGLuint id) : fID(id), fDataPtr(nullptr), fSize(0), fMapped(false) { in BufferObj() function in __anonc82b82a50111::BufferObj
27 ~BufferObj() { delete[] fDataPtr; } in ~BufferObj()
72 BufferObj* lookUp(GrGLuint id) { in lookUp()
73 BufferObj* buffer = fBuffers[id]; in lookUp()
78 BufferObj* create() { in create()
80 BufferObj* buffer; in create()
85 buffer = new BufferObj(id); in create()
92 buffer = new BufferObj(id); in create()
99 void free(BufferObj* buffer) { in free()
[all …]
DSkNullGLContext.cpp20 class BufferObj { class
24 BufferObj(GrGLuint id) : fID(id), fDataPtr(nullptr), fSize(0), fMapped(false) {} in BufferObj() function in BufferObj
25 ~BufferObj() { delete[] fDataPtr; } in ~BufferObj()
70 BufferObj* lookUp(GrGLuint id) { in lookUp()
71 BufferObj* buffer = fBuffers[id]; in lookUp()
76 BufferObj* create() { in create()
78 BufferObj* buffer; in create()
83 buffer = new BufferObj(id); in create()
90 buffer = new BufferObj(id); in create()
97 void free(BufferObj* buffer) { in free()
[all …]
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_pixel_read.c134 if (_mesa_is_bufferobj(pack->BufferObj) && aligned_rowstride != dst_rowstride) in do_blit_readpixels()
140 if (!_mesa_is_bufferobj(pack->BufferObj)) in do_blit_readpixels()
147 dst_buffer = get_radeon_buffer_object(pack->BufferObj)->bo; in do_blit_readpixels()
179 if (!_mesa_is_bufferobj(pack->BufferObj)) in do_blit_readpixels()
191 if (!_mesa_is_bufferobj(pack->BufferObj)) in do_blit_readpixels()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_pixel_read.c134 if (_mesa_is_bufferobj(pack->BufferObj) && aligned_rowstride != dst_rowstride) in do_blit_readpixels()
140 if (!_mesa_is_bufferobj(pack->BufferObj)) in do_blit_readpixels()
147 dst_buffer = get_radeon_buffer_object(pack->BufferObj)->bo; in do_blit_readpixels()
179 if (!_mesa_is_bufferobj(pack->BufferObj)) in do_blit_readpixels()
191 if (!_mesa_is_bufferobj(pack->BufferObj)) in do_blit_readpixels()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_pixel_bitmap.c78 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
80 unpack->BufferObj); in map_pbo()
208 if (_mesa_is_bufferobj(unpack->BufferObj)) { in do_blit_bitmap()
294 if (_mesa_is_bufferobj(unpack->BufferObj)) { in do_blit_bitmap()
296 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj); in do_blit_bitmap()
Dintel_pixel_read.c78 struct intel_buffer_object *dst = intel_buffer_object(pack->BufferObj); in do_blit_readpixels()
91 if (!_mesa_is_bufferobj(pack->BufferObj)) { in do_blit_readpixels()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel_bitmap.c78 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
80 unpack->BufferObj); in map_pbo()
208 if (_mesa_is_bufferobj(unpack->BufferObj)) { in do_blit_bitmap()
294 if (_mesa_is_bufferobj(unpack->BufferObj)) { in do_blit_bitmap()
296 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj); in do_blit_bitmap()
Dintel_pixel_read.c78 struct intel_buffer_object *dst = intel_buffer_object(pack->BufferObj); in do_blit_readpixels()
91 if (!_mesa_is_bufferobj(pack->BufferObj)) { in do_blit_readpixels()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_pixel_bitmap.c78 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
80 unpack->BufferObj); in map_pbo()
208 if (_mesa_is_bufferobj(unpack->BufferObj)) { in do_blit_bitmap()
294 if (_mesa_is_bufferobj(unpack->BufferObj)) { in do_blit_bitmap()
296 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj); in do_blit_bitmap()
Dintel_pixel_read.c78 struct intel_buffer_object *dst = intel_buffer_object(pack->BufferObj); in do_blit_readpixels()
91 if (!_mesa_is_bufferobj(pack->BufferObj)) { in do_blit_readpixels()
/external/mesa3d/src/mesa/tnl/
Dt_draw.c280 if (inputs[i]->BufferObj->Name) { in bind_inputs()
281 if (!inputs[i]->BufferObj->Pointer) { in bind_inputs()
282 bo[*nr_bo] = inputs[i]->BufferObj; in bind_inputs()
284 ctx->Driver.MapBufferRange(ctx, 0, inputs[i]->BufferObj->Size, in bind_inputs()
286 inputs[i]->BufferObj); in bind_inputs()
288 assert(inputs[i]->BufferObj->Pointer); in bind_inputs()
291 ptr = ADD_POINTERS(inputs[i]->BufferObj->Pointer, in bind_inputs()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_dd.c357 if (_mesa_is_bufferobj(unpack->BufferObj)) { in xmesa_DrawPixels_8R8G8B()
367 unpack->BufferObj->Size, in xmesa_DrawPixels_8R8G8B()
369 unpack->BufferObj); in xmesa_DrawPixels_8R8G8B()
419 if (_mesa_is_bufferobj(unpack->BufferObj)) { in xmesa_DrawPixels_8R8G8B()
420 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj); in xmesa_DrawPixels_8R8G8B()
491 if (_mesa_is_bufferobj(unpack->BufferObj)) { in xmesa_DrawPixels_5R6G5B()
501 unpack->BufferObj->Size, in xmesa_DrawPixels_5R6G5B()
503 unpack->BufferObj); in xmesa_DrawPixels_5R6G5B()
552 if (unpack->BufferObj->Name) { in xmesa_DrawPixels_5R6G5B()
553 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj); in xmesa_DrawPixels_5R6G5B()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom.c137 vertDataEdgeFlags = arrays[VERT_ATTRIB_EDGEFLAG]->BufferObj && in check_attrib_edgeflag()
138 arrays[VERT_ATTRIB_EDGEFLAG]->BufferObj->Name; in check_attrib_edgeflag()
Dst_atom_array.c323 const struct gl_buffer_object *bufObj = array->BufferObj; in is_interleaved_arrays()
382 bufobj = array->BufferObj; in setup_interleaved_attribs()
474 struct gl_buffer_object *bufobj = array->BufferObj; in setup_non_interleaved_attribs()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_vbo_t.c47 if (render->mode == VBO && !_mesa_is_bufferobj(a->BufferObj)) in get_array_stride()
72 imm ? array->BufferObj : NULL, in vbo_init_arrays()
137 array->Type, array->BufferObj, array->Ptr, in vbo_emit_attr()
212 if (!_mesa_is_bufferobj(a->BufferObj)) in get_max_client_stride()
303 struct gl_buffer_object *obj = array->BufferObj; in vbo_bind_vertices()

12