Home
last modified time | relevance | path

Searched refs:surf (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/external/libdrm/radeon/
Dradeon_surface.c96 struct radeon_surface *surf);
98 struct radeon_surface *surf);
167 static void surf_minify(struct radeon_surface *surf, in surf_minify() argument
173 surflevel->npix_x = mip_minify(surf->npix_x, level); in surf_minify()
174 surflevel->npix_y = mip_minify(surf->npix_y, level); in surf_minify()
175 surflevel->npix_z = mip_minify(surf->npix_z, level); in surf_minify()
176 surflevel->nblk_x = (surflevel->npix_x + surf->blk_w - 1) / surf->blk_w; in surf_minify()
177 surflevel->nblk_y = (surflevel->npix_y + surf->blk_h - 1) / surf->blk_h; in surf_minify()
178 surflevel->nblk_z = (surflevel->npix_z + surf->blk_d - 1) / surf->blk_d; in surf_minify()
179 if (surf->nsamples == 1 && surflevel->mode == RADEON_SURF_MODE_2D && in surf_minify()
[all …]
/external/mesa3d/src/amd/common/
Dac_surface.c477 struct radeon_surf *surf, bool is_stencil, unsigned level, in gfx6_compute_level() argument
524 AddrSurfInfoIn->basePitch = surf->u.legacy.stencil_level[0].nblk_x; in gfx6_compute_level()
526 AddrSurfInfoIn->basePitch = surf->u.legacy.level[0].nblk_x; in gfx6_compute_level()
530 AddrSurfInfoIn->basePitch *= surf->blk_w; in gfx6_compute_level()
538 surf_level = is_stencil ? &surf->u.legacy.stencil_level[level] : &surf->u.legacy.level[level]; in gfx6_compute_level()
539 surf_level->offset = align64(surf->surf_size, AddrSurfInfoOut->baseAlign); in gfx6_compute_level()
559 surf->u.legacy.stencil_tiling_index[level] = AddrSurfInfoOut->tileIndex; in gfx6_compute_level()
561 surf->u.legacy.tiling_index[level] = AddrSurfInfoOut->tileIndex; in gfx6_compute_level()
563 surf->surf_size = surf_level->offset + AddrSurfInfoOut->surfSize; in gfx6_compute_level()
581 surf_level->dcc_offset = surf->dcc_size; in gfx6_compute_level()
[all …]
/external/mesa3d/src/intel/isl/tests/
Disl_surf_get_image_offset_test.c55 t_assert_image_alignment_el(const struct isl_surf *surf, in t_assert_image_alignment_el() argument
60 align_el = isl_surf_get_image_alignment_el(surf); in t_assert_image_alignment_el()
68 t_assert_image_alignment_sa(const struct isl_surf *surf, in t_assert_image_alignment_sa() argument
73 align_sa = isl_surf_get_image_alignment_sa(surf); in t_assert_image_alignment_sa()
81 t_assert_offset_el(const struct isl_surf *surf, in t_assert_offset_el() argument
89 isl_surf_get_image_offset_el(surf, level, logical_array_layer, in t_assert_offset_el()
97 t_assert_phys_level0_sa(const struct isl_surf *surf, uint32_t width, in t_assert_phys_level0_sa() argument
100 t_assert_extent4d(&surf->phys_level0_sa, width, height, depth, array_len); in t_assert_phys_level0_sa()
104 t_assert_gen4_3d_layer(const struct isl_surf *surf, in t_assert_gen4_3d_layer() argument
114 t_assert_offset_el(surf, level, 0, z, in t_assert_gen4_3d_layer()
[all …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_surface.c83 struct etna_surface *surf = CALLOC_STRUCT(etna_surface); in etna_create_surface() local
85 if (!surf) in etna_create_surface()
93 surf->base.context = pctx; in etna_create_surface()
95 pipe_reference_init(&surf->base.reference, 1); in etna_create_surface()
96 pipe_resource_reference(&surf->base.texture, &rsc->base); in etna_create_surface()
97 pipe_resource_reference(&surf->prsc, prsc); in etna_create_surface()
115 surf->base.texture = &rsc->base; in etna_create_surface()
116 surf->base.format = templat->format; in etna_create_surface()
117 surf->base.width = rsc->levels[level].width; in etna_create_surface()
118 surf->base.height = rsc->levels[level].height; in etna_create_surface()
[all …]
Detnaviv_blt.c217 struct etna_surface *surf = etna_surface(dst); in etna_blit_clear_color_blt() local
218 uint64_t new_clear_value = etna_clear_blit_pack_rgba(surf->base.format, color); in etna_blit_clear_color_blt()
220 struct etna_resource *res = etna_resource(surf->base.texture); in etna_blit_clear_color_blt()
223 clr.dest.addr.offset = surf->surf.offset; in etna_blit_clear_color_blt()
225 clr.dest.bpp = util_format_get_blocksize(surf->base.format); in etna_blit_clear_color_blt()
226 clr.dest.stride = surf->surf.stride; in etna_blit_clear_color_blt()
229 if (surf->surf.ts_size) { in etna_blit_clear_color_blt()
232 clr.dest.ts_addr.offset = surf->level->ts_offset; in etna_blit_clear_color_blt()
236 clr.dest.ts_mode = surf->level->ts_mode; in etna_blit_clear_color_blt()
237 clr.dest.ts_compress_fmt = surf->level->ts_compress_fmt; in etna_blit_clear_color_blt()
[all …]
Detnaviv_rs.c269 etna_rs_gen_clear_surface(struct etna_context *ctx, struct etna_surface *surf, in etna_rs_gen_clear_surface() argument
273 struct etna_resource *dst = etna_resource(surf->base.texture); in etna_rs_gen_clear_surface()
276 switch (util_format_get_blocksizebits(surf->base.format)) { in etna_rs_gen_clear_surface()
293 bool tiled_clear = (surf->surf.padded_width & ETNA_RS_WIDTH_MASK) == 0 && in etna_rs_gen_clear_surface()
294 (surf->surf.padded_height & ETNA_RS_HEIGHT_MASK) == 0; in etna_rs_gen_clear_surface()
296 etna_compile_rs_state( ctx, &surf->clear_command, &(struct rs_state) { in etna_rs_gen_clear_surface()
300 .dest_offset = surf->surf.offset, in etna_rs_gen_clear_surface()
301 .dest_stride = surf->surf.stride, in etna_rs_gen_clear_surface()
302 .dest_padded_height = surf->surf.padded_height, in etna_rs_gen_clear_surface()
305 ….width = surf->surf.padded_width, /* These must be padded to 16x4 if !LINEAR, otherwise RS will ha… in etna_rs_gen_clear_surface()
[all …]
/external/mesa3d/src/egl/main/
Deglsurface.c54 _eglParseSurfaceAttribList(_EGLSurface *surf, const EGLint *attrib_list) in _eglParseSurfaceAttribList() argument
56 _EGLDisplay *disp = surf->Resource.Display; in _eglParseSurfaceAttribList()
57 EGLint type = surf->Type; in _eglParseSurfaceAttribList()
89 surf->GLColorspace = val; in _eglParseSurfaceAttribList()
96 surf->HdrMetadata.display_primary_r.x = val; in _eglParseSurfaceAttribList()
103 surf->HdrMetadata.display_primary_r.y = val; in _eglParseSurfaceAttribList()
110 surf->HdrMetadata.display_primary_g.x = val; in _eglParseSurfaceAttribList()
117 surf->HdrMetadata.display_primary_g.y = val; in _eglParseSurfaceAttribList()
124 surf->HdrMetadata.display_primary_b.x = val; in _eglParseSurfaceAttribList()
131 surf->HdrMetadata.display_primary_b.y = val; in _eglParseSurfaceAttribList()
[all …]
Deglsurface.h181 _eglInitSurface(_EGLSurface *surf, _EGLDisplay *disp, EGLint type,
187 _eglQuerySurface(_EGLDisplay *disp, _EGLSurface *surf, EGLint attribute, EGLint *value);
191 _eglSurfaceAttrib(_EGLDisplay *disp, _EGLSurface *surf, EGLint attribute, EGLint value);
195 _eglBindTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer);
198 _eglReleaseTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer);
202 _eglSurfaceHasMutableRenderBuffer(_EGLSurface *surf);
205 _eglSurfaceInSharedBufferMode(_EGLSurface *surf);
211 _eglGetSurface(_EGLSurface *surf) in _eglGetSurface() argument
213 if (surf) in _eglGetSurface()
214 _eglGetResource(&surf->Resource); in _eglGetSurface()
[all …]
/external/mesa3d/src/intel/blorp/
Dblorp.c81 const struct blorp_surf *surf, in brw_blorp_surface_info_init() argument
86 assert(level < surf->surf->levels); in brw_blorp_surface_info_init()
87 assert(layer < MAX2(surf->surf->logical_level0_px.depth >> level, in brw_blorp_surface_info_init()
88 surf->surf->logical_level0_px.array_len)); in brw_blorp_surface_info_init()
93 format = surf->surf->format; in brw_blorp_surface_info_init()
95 info->surf = *surf->surf; in brw_blorp_surface_info_init()
96 info->addr = surf->addr; in brw_blorp_surface_info_init()
98 info->aux_usage = surf->aux_usage; in brw_blorp_surface_info_init()
100 info->aux_surf = *surf->aux_surf; in brw_blorp_surface_info_init()
101 info->aux_addr = surf->aux_addr; in brw_blorp_surface_info_init()
[all …]
Dblorp_clear.c339 const struct blorp_surf *surf, in blorp_fast_clear() argument
356 get_fast_clear_rect(batch->blorp->isl_dev, surf->aux_surf, in blorp_fast_clear()
362 brw_blorp_surface_info_init(batch->blorp, &params.dst, surf, level, in blorp_fast_clear()
364 params.num_samples = params.dst.surf.samples; in blorp_fast_clear()
377 const struct blorp_surf *surf, in blorp_clear() argument
428 if (surf->surf->tiling == ISL_TILING_LINEAR) in blorp_clear()
455 brw_blorp_surface_info_init(batch->blorp, &params.dst, surf, level, in blorp_clear()
465 assert(params.dst.surf.samples == 1); in blorp_clear()
477 (params.dst.surf.usage & ISL_SURF_USAGE_CUBE_BIT)) { in blorp_clear()
487 if (isl_format_is_compressed(params.dst.surf.format)) { in blorp_clear()
[all …]
/external/mesa3d/src/mesa/main/
Dvdpau.c84 struct vdp_surface *surf = (struct vdp_surface *)entry->key; in unregister_surface() local
87 if (surf->state == GL_SURFACE_MAPPED_NV) { in unregister_surface()
88 GLintptr surfaces[] = { (GLintptr)surf }; in unregister_surface()
93 free(surf); in unregister_surface()
118 struct vdp_surface *surf; in register_surface() local
136 surf = CALLOC_STRUCT( vdp_surface ); in register_surface()
137 if (surf == NULL) { in register_surface()
142 surf->vdpSurface = vdpSurface; in register_surface()
143 surf->target = target; in register_surface()
144 surf->access = GL_READ_WRITE; in register_surface()
[all …]
/external/skia/gm/
Dsurface.cpp150 auto surf(ToolUtils::makeSurface(canvas, info, nullptr)); in onDraw() local
151 drawInto(surf->getCanvas()); in onDraw()
153 sk_sp<SkImage> image(surf->makeImageSnapshot()); in onDraw()
156 auto surf2(surf->makeSurface(info)); in onDraw()
160 SkASSERT(equal(surf->props(), surf2->props())); in onDraw()
243 sk_sp<SkSurface> surf = make(info); variable
245 surf->getCanvas()->clear(SK_ColorRED);
248 sk_sp<SkImage> image = surf->makeImageSnapshot();
252 surf->getCanvas()->clipRect(SkRect::MakeWH(128, 256));
253 surf->getCanvas()->clear(SK_ColorBLUE);
[all …]
/external/mesa3d/src/intel/isl/
Disl.c1610 struct isl_surf *surf, in isl_surf_init_s() argument
1754 *surf = (struct isl_surf) { in isl_surf_init_s()
1781 isl_surf_get_tile_info(const struct isl_surf *surf, in isl_surf_get_tile_info() argument
1784 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format); in isl_surf_get_tile_info()
1785 isl_tiling_get_info(surf->tiling, fmtl->bpb, tile_info); in isl_surf_get_tile_info()
1790 const struct isl_surf *surf, in isl_surf_get_hiz_surf() argument
1795 if (!isl_surf_usage_is_depth(surf->usage)) in isl_surf_get_hiz_surf()
1799 if (!isl_tiling_is_any_y(surf->tiling)) in isl_surf_get_hiz_surf()
1803 switch (surf->format) { in isl_surf_get_hiz_surf()
1805 if (isl_surf_usage_is_depth_and_stencil(surf->usage)) { in isl_surf_get_hiz_surf()
[all …]
Disl_surface_state.c149 get_image_alignment(const struct isl_surf *surf) in get_image_alignment() argument
152 if (isl_tiling_is_std_y(surf->tiling) || in get_image_alignment()
153 surf->dim_layout == ISL_DIM_LAYOUT_GEN9_1D) { in get_image_alignment()
167 return isl_surf_get_image_alignment_el(surf); in get_image_alignment()
176 return isl_surf_get_image_alignment_sa(surf); in get_image_alignment()
182 get_qpitch(const struct isl_surf *surf) in get_qpitch() argument
184 switch (surf->dim_layout) { in get_qpitch()
189 if (surf->dim == ISL_SURF_DIM_3D && surf->tiling == ISL_TILING_W) { in get_qpitch()
199 return isl_surf_get_array_pitch_el_rows(surf) / 2; in get_qpitch()
201 return isl_surf_get_array_pitch_el_rows(surf); in get_qpitch()
[all …]
Disl_storage_image.c226 const struct isl_surf *surf, in isl_surf_fill_image_param() argument
231 if (surf->dim != ISL_SURF_DIM_3D) { in isl_surf_fill_image_param()
233 surf->logical_level0_px.array_len); in isl_surf_fill_image_param()
235 param->size[0] = isl_minify(surf->logical_level0_px.w, view->base_level); in isl_surf_fill_image_param()
236 param->size[1] = surf->dim == ISL_SURF_DIM_1D ? in isl_surf_fill_image_param()
238 isl_minify(surf->logical_level0_px.h, view->base_level); in isl_surf_fill_image_param()
239 param->size[2] = surf->dim == ISL_SURF_DIM_2D ? in isl_surf_fill_image_param()
241 isl_minify(surf->logical_level0_px.d, view->base_level); in isl_surf_fill_image_param()
243 isl_surf_get_image_offset_el(surf, view->base_level, in isl_surf_fill_image_param()
244 surf->dim == ISL_SURF_DIM_3D ? in isl_surf_fill_image_param()
[all …]
/external/mesa3d/src/gallium/frontends/va/
Dimage.c200 vlVaSurface *surf; in vlVaDeriveImage() local
236 surf = handle_table_get(drv->htab, surface); in vlVaDeriveImage()
238 if (!surf || !surf->buffer) in vlVaDeriveImage()
241 if (surf->buffer->interlaced) { in vlVaDeriveImage()
254 surfaces = surf->buffer->get_surfaces(surf->buffer); in vlVaDeriveImage()
262 img->format.fourcc = PipeFormatToVaFourcc(surf->buffer->buffer_format); in vlVaDeriveImage()
265 img->width = surf->templat.width; in vlVaDeriveImage()
266 img->height = surf->templat.height; in vlVaDeriveImage()
270 w = align(surf->buffer->width, 2); in vlVaDeriveImage()
271 h = align(surf->buffer->height, 2); in vlVaDeriveImage()
[all …]
Dsurface.c75 vlVaSurface *surf = handle_table_get(drv->htab, surface_list[i]); in vlVaDestroySurfaces() local
76 if (!surf) { in vlVaDestroySurfaces()
80 if (surf->buffer) in vlVaDestroySurfaces()
81 surf->buffer->destroy(surf->buffer); in vlVaDestroySurfaces()
82 util_dynarray_fini(&surf->subpics); in vlVaDestroySurfaces()
83 FREE(surf); in vlVaDestroySurfaces()
96 vlVaSurface *surf; in vlVaSyncSurface() local
106 surf = handle_table_get(drv->htab, render_target); in vlVaSyncSurface()
108 if (!surf || !surf->buffer) { in vlVaSyncSurface()
113 if (!surf->feedback) { in vlVaSyncSurface()
[all …]
/external/skia/tests/
DWrappedSurfaceCopyOnWriteTest.cpp69 auto surfaceProxyID = [&](const sk_sp<SkSurface>& surf) { in DEF_GANESH_TEST_FOR_ALL_CONTEXTS() argument
70 GrRenderTargetProxy* rtp = SkCanvasPriv::TopDeviceTargetProxy(surf->getCanvas()); in DEF_GANESH_TEST_FOR_ALL_CONTEXTS()
74 sk_sp<SkSurface> surf = makeDirectBackendSurface(); in DEF_GANESH_TEST_FOR_ALL_CONTEXTS() local
75 surf->getCanvas()->clear(SkColor4f{1, 0, 0, 1}); in DEF_GANESH_TEST_FOR_ALL_CONTEXTS()
76 sk_sp<SkImage> img = surf->makeImageSnapshot(); in DEF_GANESH_TEST_FOR_ALL_CONTEXTS()
78 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img)); in DEF_GANESH_TEST_FOR_ALL_CONTEXTS()
82 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img)); in DEF_GANESH_TEST_FOR_ALL_CONTEXTS()
84 surf->getCanvas()->clear({0, 0, 1, 1}); in DEF_GANESH_TEST_FOR_ALL_CONTEXTS()
85 REPORTER_ASSERT(reporter, surfaceProxyID(surf) != imageProxyID(img)); in DEF_GANESH_TEST_FOR_ALL_CONTEXTS()
88 img = surf->makeImageSnapshot(); in DEF_GANESH_TEST_FOR_ALL_CONTEXTS()
[all …]
DGrTextureMipMapInvalidationTest.cpp50 auto isMipped = [reporter](SkSurface* surf) { in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() argument
51 sk_sp<SkImage> image = surf->makeImageSnapshot(); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
53 surf->recordingContext()); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
59 auto mipsAreDirty = [](SkSurface* surf) { in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() argument
60 sk_sp<SkImage> image = surf->makeImageSnapshot(); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
62 surf->recordingContext()); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
111 auto surf = SkSurface::MakeRenderTarget( in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() local
119 if (!surf) { in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
122 surf->getCanvas()->drawColor(SK_ColorDKGRAY); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
123 auto img = surf->makeImageSnapshot(); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
[all …]
/external/mesa3d/src/gallium/drivers/v3d/
Dv3dx_rcl.c58 struct v3d_surface *surf = v3d_surface(psurf); in load_general() local
59 bool separate_stencil = surf->separate_stencil && buffer == STENCIL; in load_general()
61 psurf = surf->separate_stencil; in load_general()
62 surf = v3d_surface(psurf); in load_general()
75 load.memory_format = surf->tiling; in load_general()
79 load.input_image_format = surf->format; in load_general()
80 load.r_b_swap = surf->swap_rb; in load_general()
82 if (surf->tiling == VC5_TILING_UIF_NO_XOR || in load_general()
83 surf->tiling == VC5_TILING_UIF_XOR) { in load_general()
85 surf->padded_height_of_output_image_in_uif_blocks; in load_general()
[all …]
/external/mesa3d/src/gallium/drivers/vc4/kernel/
Dvc4_render_cl.c94 struct drm_vc4_submit_rcl_surface *surf, in vc4_full_res_offset() argument
97 return bo->paddr + surf->offset + VC4_TILE_BUFFER_SIZE * in vc4_full_res_offset()
379 struct drm_vc4_submit_rcl_surface *surf) in vc4_full_res_bounds_check() argument
385 if (surf->offset > obj->base.size) { in vc4_full_res_bounds_check()
387 surf->offset, obj->base.size); in vc4_full_res_bounds_check()
391 if ((obj->base.size - surf->offset) / VC4_TILE_BUFFER_SIZE < in vc4_full_res_bounds_check()
397 surf->offset); in vc4_full_res_bounds_check()
406 struct drm_vc4_submit_rcl_surface *surf) in vc4_rcl_msaa_surface_setup() argument
408 if (surf->flags != 0 || surf->bits != 0) { in vc4_rcl_msaa_surface_setup()
413 if (surf->hindex == ~0) in vc4_rcl_msaa_surface_setup()
[all …]
/external/mesa3d/src/gallium/frontends/vdpau/
Dpresentation.c209 vlVdpOutputSurface *surf; in vlVdpPresentationQueueDisplay() local
224 surf = vlGetDataHTAB(surface); in vlVdpPresentationQueueDisplay()
225 if (!surf) in vlVdpPresentationQueueDisplay()
234 if (vscreen->set_back_texture_from_output && surf->send_to_X) in vlVdpPresentationQueueDisplay()
235 … vscreen->set_back_texture_from_output(vscreen, surf->surface->texture, clip_width, clip_height); in vlVdpPresentationQueueDisplay()
242 if (!vscreen->set_back_texture_from_output || !surf->send_to_X) { in vlVdpPresentationQueueDisplay()
260 … vl_compositor_set_rgba_layer(cstate, compositor, 0, surf->sampler_view, &src_rect, NULL, NULL); in vlVdpPresentationQueueDisplay()
269 pipe->screen->fence_reference(pipe->screen, &surf->fence, NULL); in vlVdpPresentationQueueDisplay()
270 pipe->flush(pipe, &surf->fence, 0); in vlVdpPresentationQueueDisplay()
274 pq->last_surf = surf; in vlVdpPresentationQueueDisplay()
[all …]
/external/mesa3d/src/gallium/drivers/iris/
Diris_resource.c349 res->aux.surf.size_B = 0; in iris_resource_disable_aux()
351 res->aux.extra_aux.surf.size_B = 0; in iris_resource_disable_aux()
397 if (res->surf.dim == ISL_SURF_DIM_3D) in iris_get_num_logical_layers()
398 return minify(res->surf.logical_level0_px.depth, level); in iris_get_num_logical_layers()
400 return res->surf.logical_level0_px.array_len; in iris_get_num_logical_layers()
409 for (uint32_t level = 0; level < res->surf.levels; level++) in create_aux_state_map()
413 res->surf.levels * sizeof(enum isl_aux_state *); in create_aux_state_map()
428 for (uint32_t level = 0; level < res->surf.levels; level++) { in create_aux_state_map()
454 const unsigned aux_offset = res->aux.extra_aux.surf.size_B > 0 ? in map_aux_addresses()
457 gen_aux_map_format_bits(res->surf.tiling, format, plane); in map_aux_addresses()
[all …]
Diris_resolve.c62 struct iris_surface *surf = (void *) cso_fb->cbufs[i]; in disable_rb_aux_buffer() local
63 if (!surf) in disable_rb_aux_buffer()
66 struct iris_resource *rb_res = (void *) surf->base.texture; in disable_rb_aux_buffer()
69 surf->base.u.tex.level >= min_level && in disable_rb_aux_buffer()
70 surf->base.u.tex.level < min_level + num_levels) { in disable_rb_aux_buffer()
222 struct iris_surface *surf = (void *) cso_fb->cbufs[i]; in iris_predraw_resolve_framebuffer() local
225 iris_resource_prepare_texture(ice, res, surf->view.format, in iris_predraw_resolve_framebuffer()
226 surf->view.base_level, 1, in iris_predraw_resolve_framebuffer()
227 surf->view.base_array_layer, in iris_predraw_resolve_framebuffer()
228 surf->view.array_len); in iris_predraw_resolve_framebuffer()
[all …]
/external/mesa3d/src/egl/drivers/dri2/
Dplatform_x11_dri3.c54 dri3_surf->surf.base.Width = width; in egl_dri3_set_drawable_size()
55 dri3_surf->surf.base.Height = height; in egl_dri3_set_drawable_size()
64 return ctx->Resource.Display == dri3_surf->surf.base.Resource.Display; in egl_dri3_in_current_context()
93 _EGLDisplay *disp = dri3_surf->surf.base.Resource.Display; in egl_dri3_flush_drawable()
95 dri2_flush_drawable_for_swapbuffers(disp, &dri3_surf->surf.base); in egl_dri3_flush_drawable()
108 dri3_destroy_surface(_EGLDisplay *disp, _EGLSurface *surf) in dri3_destroy_surface() argument
111 struct dri3_egl_surface *dri3_surf = dri3_egl_surface(surf); in dri3_destroy_surface()
116 if (surf->Type == EGL_PBUFFER_BIT) in dri3_destroy_surface()
119 dri2_fini_surface(surf); in dri3_destroy_surface()
120 free(surf); in dri3_destroy_surface()
[all …]

12345678910>>...14