Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/mesa/main/
Dpbo.c82 if (!pack->BufferObj) { in _mesa_validate_pbo_access()
87 size = pack->BufferObj->Size; in _mesa_validate_pbo_access()
154 if (unpack->BufferObj) { in _mesa_map_pbo_source()
157 unpack->BufferObj->Size, in _mesa_map_pbo_source()
159 unpack->BufferObj, in _mesa_map_pbo_source()
191 if (unpack->BufferObj) { in _mesa_validate_pbo_source()
203 if (!unpack->BufferObj) { in _mesa_validate_pbo_source()
208 if (_mesa_check_disallowed_mapping(unpack->BufferObj)) { in _mesa_validate_pbo_source()
228 if (!unpack->BufferObj) { in _mesa_validate_pbo_source_compressed()
234 ((const GLubyte *) 0) + unpack->BufferObj->Size) { in _mesa_validate_pbo_source_compressed()
[all …]
Darrayobj.c315 _mesa_reference_buffer_object(ctx, &obj->BufferBinding[i].BufferObj, NULL); in _mesa_unbind_array_object_vbos()
415 assert(binding->BufferObj); in compute_vbo_offset_range()
571 if (binding->BufferObj) { in _mesa_update_vao_derived_arrays()
644 if (binding->BufferObj != binding2->BufferObj) in _mesa_update_vao_derived_arrays()
750 assert(!binding2->BufferObj); in _mesa_update_vao_derived_arrays()
792 assert(binding->BufferObj == binding2->BufferObj); in _mesa_update_vao_derived_arrays()
793 if (binding->BufferObj) { in _mesa_update_vao_derived_arrays()
835 assert(!buffer_binding->BufferObj); in _mesa_all_varyings_in_vbos()
864 assert(buffer_binding->BufferObj); in _mesa_all_buffers_are_unmapped()
867 if (_mesa_check_disallowed_mapping(buffer_binding->BufferObj)) in _mesa_all_buffers_are_unmapped()
[all …]
Dpixel.c151 &ctx->DefaultPacking.BufferObj, in validate_pbo_access()
152 pack->BufferObj); in validate_pbo_access()
159 &ctx->DefaultPacking.BufferObj, NULL); in validate_pbo_access()
162 if (pack->BufferObj) { in validate_pbo_access()
203 if (ctx->Unpack.BufferObj) { in _mesa_PixelMapfv()
244 if (ctx->Unpack.BufferObj) { in _mesa_PixelMapuiv()
299 if (ctx->Unpack.BufferObj) { in _mesa_PixelMapusv()
348 if (ctx->Pack.BufferObj) { in _mesa_GetnPixelMapfvARB()
397 if (ctx->Pack.BufferObj) { in _mesa_GetnPixelMapuivARB()
446 if (ctx->Pack.BufferObj) { in _mesa_GetnPixelMapusvARB()
Dtexgetimage.c704 if (ctx->Pack.BufferObj) { in _mesa_GetTexSubImage_sw()
712 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size, in _mesa_GetTexSubImage_sw()
713 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj, in _mesa_GetTexSubImage_sw()
763 if (ctx->Pack.BufferObj) { in _mesa_GetTexSubImage_sw()
764 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj, MAP_INTERNAL); in _mesa_GetTexSubImage_sw()
791 if (ctx->Pack.BufferObj) { in get_compressed_texsubimage_sw()
794 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size, in get_compressed_texsubimage_sw()
795 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj, in get_compressed_texsubimage_sw()
838 if (ctx->Pack.BufferObj) { in get_compressed_texsubimage_sw()
839 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj, MAP_INTERNAL); in get_compressed_texsubimage_sw()
[all …]
Ddrawpix.c153 if (ctx->Unpack.BufferObj) { in _mesa_DrawPixels()
161 if (_mesa_check_disallowed_mapping(ctx->Unpack.BufferObj)) { in _mesa_DrawPixels()
355 if (ctx->Unpack.BufferObj) { in _mesa_Bitmap()
364 if (_mesa_check_disallowed_mapping(ctx->Unpack.BufferObj)) { in _mesa_Bitmap()
Dpixelstore.c280 _mesa_reference_buffer_object(ctx, &ctx->Pack.BufferObj, NULL); in _mesa_init_pixelstore()
294 _mesa_reference_buffer_object(ctx, &ctx->Unpack.BufferObj, NULL); in _mesa_init_pixelstore()
311 _mesa_reference_buffer_object(ctx, &ctx->DefaultPacking.BufferObj, NULL); in _mesa_init_pixelstore()
Dvarray.c172 if (vao->BufferBinding[bindingIndex].BufferObj) in _mesa_vertex_attrib_binding()
223 if (binding->BufferObj != vbo || in _mesa_bind_vertex_buffer()
228 _mesa_reference_buffer_object(ctx, &binding->BufferObj, NULL); in _mesa_bind_vertex_buffer()
229 binding->BufferObj = vbo; in _mesa_bind_vertex_buffer()
231 _mesa_reference_buffer_object(ctx, &binding->BufferObj, vbo); in _mesa_bind_vertex_buffer()
2115 buf = vao->BufferBinding[array->BufferBindingIndex].BufferObj; in get_vertex_array_attrib()
2406 buf = vao->BufferBinding[VERT_ATTRIB_GENERIC(index)].BufferObj; in _mesa_GetVertexArrayIndexediv()
2925 vao->BufferBinding[VERT_ATTRIB_GENERIC(bindingIndex)].BufferObj; in vertex_array_vertex_buffer()
3188 else if (binding->BufferObj && binding->BufferObj->Name == buffers[i]) in vertex_array_vertex_buffers()
3189 vbo = binding->BufferObj; in vertex_array_vertex_buffers()
[all …]
Dattrib.c1298 _mesa_reference_buffer_object(ctx, &dst->BufferObj, src->BufferObj); in copy_pixelstore()
1331 _mesa_reference_buffer_object(ctx, &dst->BufferObj, src->BufferObj); in copy_vertex_buffer_binding()
1520 _mesa_reference_buffer_object(ctx, &head->Pack.BufferObj, NULL); in _mesa_PopClientAttrib()
1523 _mesa_reference_buffer_object(ctx, &head->Unpack.BufferObj, NULL); in _mesa_PopClientAttrib()
1536 _mesa_reference_buffer_object(ctx, &head->VAO.BufferBinding[i].BufferObj, NULL); in _mesa_PopClientAttrib()
/third_party/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_pixel_read.c134 if (pack->BufferObj && aligned_rowstride != dst_rowstride) in do_blit_readpixels()
140 if (!pack->BufferObj) in do_blit_readpixels()
147 dst_buffer = get_radeon_buffer_object(pack->BufferObj)->bo; in do_blit_readpixels()
179 if (!pack->BufferObj) in do_blit_readpixels()
191 if (!pack->BufferObj) in do_blit_readpixels()
/third_party/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_pixel_read.c134 if (pack->BufferObj && aligned_rowstride != dst_rowstride) in do_blit_readpixels()
140 if (!pack->BufferObj) in do_blit_readpixels()
147 dst_buffer = get_radeon_buffer_object(pack->BufferObj)->bo; in do_blit_readpixels()
179 if (!pack->BufferObj) in do_blit_readpixels()
191 if (!pack->BufferObj) in do_blit_readpixels()
/third_party/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel_bitmap.c79 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
81 unpack->BufferObj, in map_pbo()
214 if (unpack->BufferObj) { in do_blit_bitmap()
313 if (unpack->BufferObj) { in do_blit_bitmap()
315 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj, MAP_INTERNAL); in do_blit_bitmap()
Dintel_pixel_read.c79 struct intel_buffer_object *dst = intel_buffer_object(pack->BufferObj); in do_blit_readpixels()
87 assert(pack->BufferObj); in do_blit_readpixels()
169 if (pack->BufferObj) { in intelReadPixels()
Dintel_tex_image.c114 struct intel_buffer_object *pbo = intel_buffer_object(unpack->BufferObj); in try_pbo_upload()
118 if (!unpack->BufferObj) in try_pbo_upload()
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_pixel_bitmap.c77 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
79 unpack->BufferObj, in map_pbo()
213 if (unpack->BufferObj) { in do_blit_bitmap()
317 if (unpack->BufferObj) { in do_blit_bitmap()
319 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj, MAP_INTERNAL); in do_blit_bitmap()
Dbrw_pixel_draw.c58 struct brw_buffer_object *src = brw_buffer_object(unpack->BufferObj); in do_blit_drawpixels()
167 unpack->BufferObj) { in brw_drawpixels()
Dbrw_pixel_read.c98 pack->BufferObj || in brw_readpixels_tiled_memcpy()
275 if (pack->BufferObj) { in brw_readpixels()
Dbrw_tex_image.c211 packing->BufferObj || in brw_texsubimage_tiled_memcpy()
325 if (pixels == NULL && !packing->BufferObj) in brw_upload_tex()
331 if (packing->BufferObj || tex_busy || in brw_upload_tex()
759 packing->BufferObj || in brw_gettexsubimage_tiled_memcpy()
870 if (ctx->Pack.BufferObj) { in brw_get_tex_sub_image()
Dbrw_draw_upload.c496 assert(glbinding->BufferObj); in brw_prepare_vertices()
529 brw_buffer_object(glbinding->BufferObj); in brw_prepare_vertices()
604 assert(!glbinding->BufferObj); in brw_prepare_vertices()
/third_party/mesa3d/src/mesa/drivers/x11/
Dxm_dd.c365 if (unpack->BufferObj) { in xmesa_DrawPixels_8R8G8B()
375 unpack->BufferObj->Size, in xmesa_DrawPixels_8R8G8B()
377 unpack->BufferObj, in xmesa_DrawPixels_8R8G8B()
425 if (unpack->BufferObj) { in xmesa_DrawPixels_8R8G8B()
426 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj, MAP_INTERNAL); in xmesa_DrawPixels_8R8G8B()
497 if (unpack->BufferObj) { in xmesa_DrawPixels_5R6G5B()
507 unpack->BufferObj->Size, in xmesa_DrawPixels_5R6G5B()
509 unpack->BufferObj, in xmesa_DrawPixels_5R6G5B()
556 if (unpack->BufferObj) { in xmesa_DrawPixels_5R6G5B()
557 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj, MAP_INTERNAL); in xmesa_DrawPixels_5R6G5B()
/third_party/mesa3d/src/mesa/tnl/
Dt_draw.c290 if (binding->BufferObj) { in bind_inputs()
291 if (!binding->BufferObj->Mappings[MAP_INTERNAL].Pointer) { in bind_inputs()
292 bo[*nr_bo] = binding->BufferObj; in bind_inputs()
294 ctx->Driver.MapBufferRange(ctx, 0, binding->BufferObj->Size, in bind_inputs()
296 binding->BufferObj, in bind_inputs()
299 assert(binding->BufferObj->Mappings[MAP_INTERNAL].Pointer); in bind_inputs()
302 ptr = ADD_POINTERS(binding->BufferObj->Mappings[MAP_INTERNAL].Pointer, in bind_inputs()
Dt_split_copy.c442 struct gl_buffer_object *vbo = binding->BufferObj; in replay_init()
534 dstbind->BufferObj = NULL; in replay_init()
575 copy->varying[i].array->BufferBinding->BufferObj; in replay_finish()
Dt_rebase.c244 if (arrays[i].BufferBinding->BufferObj) in REBASE()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_array.c105 if (binding->BufferObj) { in setup_arrays()
107 st_get_buffer_reference(ctx, binding->BufferObj); in setup_arrays()
134 if (binding->BufferObj) { in setup_arrays()
137 st_get_buffer_reference(ctx, binding->BufferObj); in setup_arrays()
/third_party/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_vbo_t.c49 if (render->mode == VBO && !binding->BufferObj) { in get_array_stride()
90 imm ? binding->BufferObj : NULL, in vbo_init_arrays()
158 attrib->Format.Type, binding->BufferObj, p, in vbo_emit_attr()
233 if (!a->BufferBinding->BufferObj) in get_max_client_stride()
331 struct gl_buffer_object *obj = binding->BufferObj; in vbo_bind_vertices()
/third_party/mesa3d/src/mesa/vbo/
Dvbo_context.c204 _mesa_reference_buffer_object(ctx, &vbo->binding.BufferObj, NULL); in _vbo_DestroyContext()

12