Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/mesa/main/
Dpbo.c80 if (!pack->BufferObj) { in _mesa_validate_pbo_access()
85 size = pack->BufferObj->Size; in _mesa_validate_pbo_access()
152 if (unpack->BufferObj) { in _mesa_map_pbo_source()
155 unpack->BufferObj->Size, in _mesa_map_pbo_source()
157 unpack->BufferObj, in _mesa_map_pbo_source()
189 if (unpack->BufferObj) { in _mesa_validate_pbo_source()
201 if (!unpack->BufferObj) { in _mesa_validate_pbo_source()
206 if (_mesa_check_disallowed_mapping(unpack->BufferObj)) { in _mesa_validate_pbo_source()
226 if (!unpack->BufferObj) { in _mesa_validate_pbo_source_compressed()
232 ((const GLubyte *) 0) + unpack->BufferObj->Size) { in _mesa_validate_pbo_source_compressed()
[all …]
Dpixel.c152 &ctx->DefaultPacking.BufferObj, in validate_pbo_access()
153 pack->BufferObj); in validate_pbo_access()
160 &ctx->DefaultPacking.BufferObj, NULL); in validate_pbo_access()
163 if (pack->BufferObj) { in validate_pbo_access()
204 if (ctx->Unpack.BufferObj) { in _mesa_PixelMapfv()
245 if (ctx->Unpack.BufferObj) { in _mesa_PixelMapuiv()
300 if (ctx->Unpack.BufferObj) { in _mesa_PixelMapusv()
347 if (ctx->Pack.BufferObj) in _mesa_GetnPixelMapfvARB()
348 ctx->Pack.BufferObj->UsageHistory |= USAGE_PIXEL_PACK_BUFFER; in _mesa_GetnPixelMapfvARB()
352 if (ctx->Pack.BufferObj) { in _mesa_GetnPixelMapfvARB()
[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()
573 if (binding->BufferObj) { in _mesa_update_vao_derived_arrays()
646 if (binding->BufferObj != binding2->BufferObj) in _mesa_update_vao_derived_arrays()
752 assert(!binding2->BufferObj); in _mesa_update_vao_derived_arrays()
794 assert(binding->BufferObj == binding2->BufferObj); in _mesa_update_vao_derived_arrays()
795 if (binding->BufferObj) { in _mesa_update_vao_derived_arrays()
836 struct gl_buffer_object *bo = binding->BufferObj; in _mesa_vao_map_arrays()
878 struct gl_buffer_object *bo = binding->BufferObj; in _mesa_vao_unmap_arrays()
Dtexgetimage.c705 if (ctx->Pack.BufferObj) { in _mesa_GetTexSubImage_sw()
713 _mesa_bufferobj_map_range(ctx, 0, ctx->Pack.BufferObj->Size, in _mesa_GetTexSubImage_sw()
714 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj, in _mesa_GetTexSubImage_sw()
764 if (ctx->Pack.BufferObj) { in _mesa_GetTexSubImage_sw()
765 _mesa_bufferobj_unmap(ctx, ctx->Pack.BufferObj, MAP_INTERNAL); in _mesa_GetTexSubImage_sw()
792 if (ctx->Pack.BufferObj) { in get_compressed_texsubimage_sw()
795 _mesa_bufferobj_map_range(ctx, 0, ctx->Pack.BufferObj->Size, in get_compressed_texsubimage_sw()
796 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj, in get_compressed_texsubimage_sw()
839 if (ctx->Pack.BufferObj) { in get_compressed_texsubimage_sw()
840 _mesa_bufferobj_unmap(ctx, ctx->Pack.BufferObj, MAP_INTERNAL); in get_compressed_texsubimage_sw()
[all …]
Ddrawpix.c155 if (ctx->Unpack.BufferObj) { in _mesa_DrawPixels()
163 if (_mesa_check_disallowed_mapping(ctx->Unpack.BufferObj)) { in _mesa_DrawPixels()
357 if (ctx->Unpack.BufferObj) { in _mesa_Bitmap()
366 if (_mesa_check_disallowed_mapping(ctx->Unpack.BufferObj)) { in _mesa_Bitmap()
Dpixelstore.c281 _mesa_reference_buffer_object(ctx, &ctx->Pack.BufferObj, NULL); in _mesa_init_pixelstore()
295 _mesa_reference_buffer_object(ctx, &ctx->Unpack.BufferObj, NULL); in _mesa_init_pixelstore()
312 _mesa_reference_buffer_object(ctx, &ctx->DefaultPacking.BufferObj, NULL); in _mesa_init_pixelstore()
Dvarray.c173 if (vao->BufferBinding[bindingIndex].BufferObj) in _mesa_vertex_attrib_binding()
228 if (binding->BufferObj != vbo || in _mesa_bind_vertex_buffer()
233 _mesa_reference_buffer_object(ctx, &binding->BufferObj, NULL); in _mesa_bind_vertex_buffer()
234 binding->BufferObj = vbo; in _mesa_bind_vertex_buffer()
236 _mesa_reference_buffer_object(ctx, &binding->BufferObj, vbo); in _mesa_bind_vertex_buffer()
2141 buf = vao->BufferBinding[array->BufferBindingIndex].BufferObj; in get_vertex_array_attrib()
2432 buf = vao->BufferBinding[VERT_ATTRIB_GENERIC(index)].BufferObj; in _mesa_GetVertexArrayIndexediv()
2951 vao->BufferBinding[VERT_ATTRIB_GENERIC(bindingIndex)].BufferObj; in vertex_array_vertex_buffer()
3214 else if (binding->BufferObj && binding->BufferObj->Name == buffers[i]) in vertex_array_vertex_buffers()
3215 vbo = binding->BufferObj; in vertex_array_vertex_buffers()
[all …]
Dpolygon.c285 if (ctx->Pack.BufferObj) in _mesa_GetnPolygonStippleARB()
286 ctx->Pack.BufferObj->UsageHistory |= USAGE_PIXEL_PACK_BUFFER; in _mesa_GetnPolygonStippleARB()
Dreadpix.c1156 if (ctx->Pack.BufferObj) { in read_pixels()
1167 if (ctx->Pack.BufferObj && in read_pixels()
1168 _mesa_check_disallowed_mapping(ctx->Pack.BufferObj)) { in read_pixels()
1175 if (ctx->Pack.BufferObj) in read_pixels()
1176 ctx->Pack.BufferObj->UsageHistory |= USAGE_PIXEL_PACK_BUFFER; in read_pixels()
Dvarray.h61 if (binding->BufferObj) in _mesa_vertex_attrib_address()
Dattrib.c1153 _mesa_reference_buffer_object(ctx, &dst->BufferObj, src->BufferObj); in copy_pixelstore()
1186 _mesa_reference_buffer_object(ctx, &dst->BufferObj, src->BufferObj); in copy_vertex_buffer_binding()
1376 _mesa_reference_buffer_object(ctx, &head->Pack.BufferObj, NULL); in _mesa_PopClientAttrib()
1379 _mesa_reference_buffer_object(ctx, &head->Unpack.BufferObj, NULL); in _mesa_PopClientAttrib()
1392 _mesa_reference_buffer_object(ctx, &head->VAO.BufferBinding[i].BufferObj, NULL); in _mesa_PopClientAttrib()
Dcontext.c1155 _mesa_reference_buffer_object(ctx, &ctx->Pack.BufferObj, NULL); in _mesa_free_context_data()
1156 _mesa_reference_buffer_object(ctx, &ctx->Unpack.BufferObj, NULL); in _mesa_free_context_data()
1157 _mesa_reference_buffer_object(ctx, &ctx->DefaultPacking.BufferObj, NULL); in _mesa_free_context_data()
Dbufferobj.c690 return &ctx->Pack.BufferObj; in get_buffer_target()
692 return &ctx->Unpack.BufferObj; in get_buffer_target()
1428 bind_buffer_object(ctx, &ctx->Pack.BufferObj, 0, false); in _mesa_update_default_objects_buffer_objects()
1429 bind_buffer_object(ctx, &ctx->Unpack.BufferObj, 0, false); in _mesa_update_default_objects_buffer_objects()
1546 if (vao->BufferBinding[index].BufferObj == obj) { in unbind()
1926 if (ctx->Pack.BufferObj == bufObj) { in delete_buffers()
1927 bind_buffer_object(ctx, &ctx->Pack.BufferObj, 0, false); in delete_buffers()
1929 if (ctx->Unpack.BufferObj == bufObj) { in delete_buffers()
1930 bind_buffer_object(ctx, &ctx->Unpack.BufferObj, 0, false); in delete_buffers()
Dget.c1047 buf = ctx->Array.VAO->BufferBinding[VERT_ATTRIB_TEX(ctx->Array.ActiveTexture)].BufferObj; in find_custom_value()
1074 v->value_int = ctx->Pack.BufferObj ? ctx->Pack.BufferObj->Name : 0; in find_custom_value()
1077 v->value_int = ctx->Unpack.BufferObj ? ctx->Unpack.BufferObj->Name : 0; in find_custom_value()
1116 buf = ctx->Array.VAO->BufferBinding[VERT_ATTRIB_POINT_SIZE].BufferObj; in find_custom_value()
2756 buf = ctx->Array.VAO->BufferBinding[VERT_ATTRIB_GENERIC(index)].BufferObj; in find_value_indexed()
Dapi_arrayelt.c1426 if (binding->BufferObj) { in attrib_src()
1427 src = ADD_POINTERS(binding->BufferObj->Mappings[MAP_INTERNAL].Pointer, in attrib_src()
Dmtypes.h1499 struct gl_buffer_object *BufferObj; /**< GL_ARB_pixel_buffer_object */ member
1582 struct gl_buffer_object *BufferObj; /**< GL_ARB_vertex_buffer_object */ member
Ddraw.c1109 struct gl_buffer_object *bo = binding->BufferObj; in check_array_data()
1235 struct gl_buffer_object *bufObj = binding->BufferObj; in print_draw_arrays()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_array.cpp109 if (binding->BufferObj) { in setup_arrays()
111 _mesa_get_bufferobj_reference(ctx, binding->BufferObj); in setup_arrays()
141 if (binding->BufferObj) { in setup_arrays()
144 _mesa_get_bufferobj_reference(ctx, binding->BufferObj); in setup_arrays()
Dst_pbo_compute.c958 if (can_copy_direct(pack) && pack->BufferObj) { in download_texture_compute()
959 dst = pack->BufferObj->buffer; in download_texture_compute()
960 assert(pack->BufferObj->Size >= buffer_size); in download_texture_compute()
1134 if (!can_copy_direct(&ctx->Pack) || !ctx->Pack.BufferObj) { in st_GetTexSubImage_shader()
Dst_cb_texture.c1919 !unpack->BufferObj && in st_TexSubImage()
1989 if (unpack->BufferObj) { in st_TexSubImage()
2240 if (!ctx->Unpack.BufferObj) in st_CompressedTexSubImage()
2297 buf = ctx->Unpack.BufferObj->buffer; in st_CompressedTexSubImage()
2474 if (st->pbo.download_enabled && ctx->Pack.BufferObj) { in st_GetTexSubImage()
Dst_cb_readpixels.c486 if (st->pbo.download_enabled && pack->BufferObj) { in st_ReadPixels()
Dst_pbo.c109 struct pipe_resource *buf = store->BufferObj->buffer; in st_pbo_addresses_pixelstore()
Dst_cb_drawpixels.c498 unpack->BufferObj) { in search_drawpixels_cache()
/third_party/mesa3d/src/mesa/vbo/
Dvbo_save_draw.c148 struct gl_buffer_object *bo = list->cold->VAO[0]->BufferBinding[0].BufferObj; in loopback_vertex_list()
Dvbo_save_api.c301 if (vao->BufferBinding[0].BufferObj != bo) in compare_vao()

12