/external/libdrm/radeon/ |
D | radeon_surface.c | 91 struct radeon_surface *surf); 93 struct radeon_surface *surf); 162 static void surf_minify(struct radeon_surface *surf, in surf_minify() argument 168 surflevel->npix_x = mip_minify(surf->npix_x, level); in surf_minify() 169 surflevel->npix_y = mip_minify(surf->npix_y, level); in surf_minify() 170 surflevel->npix_z = mip_minify(surf->npix_z, level); in surf_minify() 171 surflevel->nblk_x = (surflevel->npix_x + surf->blk_w - 1) / surf->blk_w; in surf_minify() 172 surflevel->nblk_y = (surflevel->npix_y + surf->blk_h - 1) / surf->blk_h; in surf_minify() 173 surflevel->nblk_z = (surflevel->npix_z + surf->blk_d - 1) / surf->blk_d; in surf_minify() 174 if (surf->nsamples == 1 && surflevel->mode == RADEON_SURF_MODE_2D && in surf_minify() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | gen7_wm_surface_state.c | 65 gen7_set_surface_tiling(struct gen7_surface_state *surf, uint32_t tiling) in gen7_set_surface_tiling() argument 69 surf->ss0.tiled_surface = 0; in gen7_set_surface_tiling() 70 surf->ss0.tile_walk = 0; in gen7_set_surface_tiling() 73 surf->ss0.tiled_surface = 1; in gen7_set_surface_tiling() 74 surf->ss0.tile_walk = BRW_TILEWALK_XMAJOR; in gen7_set_surface_tiling() 77 surf->ss0.tiled_surface = 1; in gen7_set_surface_tiling() 78 surf->ss0.tile_walk = BRW_TILEWALK_YMAJOR; in gen7_set_surface_tiling() 85 gen7_set_surface_msaa(struct gen7_surface_state *surf, unsigned num_samples, in gen7_set_surface_msaa() argument 89 surf->ss4.num_multisamples = GEN7_SURFACE_MULTISAMPLECOUNT_8; in gen7_set_surface_msaa() 91 surf->ss4.num_multisamples = GEN7_SURFACE_MULTISAMPLECOUNT_4; in gen7_set_surface_msaa() [all …]
|
D | gen7_blorp.cpp | 155 struct gen7_surface_state *surf = (struct gen7_surface_state *) in gen7_blorp_emit_surface_state() local 156 brw_state_batch(brw, AUB_TRACE_SURFACE_STATE, sizeof(*surf), 32, in gen7_blorp_emit_surface_state() 158 memset(surf, 0, sizeof(*surf)); in gen7_blorp_emit_surface_state() 161 surf->ss0.vertical_alignment = 1; in gen7_blorp_emit_surface_state() 163 surf->ss0.horizontal_alignment = 1; in gen7_blorp_emit_surface_state() 165 surf->ss0.surface_format = surface->brw_surfaceformat; in gen7_blorp_emit_surface_state() 166 surf->ss0.surface_type = BRW_SURFACE_2D; in gen7_blorp_emit_surface_state() 167 surf->ss0.surface_array_spacing = surface->array_spacing_lod0 ? in gen7_blorp_emit_surface_state() 171 surf->ss1.base_addr = surface->compute_tile_offsets(&tile_x, &tile_y); in gen7_blorp_emit_surface_state() 172 surf->ss1.base_addr += region->bo->offset; in gen7_blorp_emit_surface_state() [all …]
|
D | brw_wm_surface_state.c | 721 uint32_t *surf; in brw_update_buffer_texture_surface() local 734 surf = brw_state_batch(brw, AUB_TRACE_SURFACE_STATE, in brw_update_buffer_texture_surface() 737 surf[0] = (BRW_SURFACE_BUFFER << BRW_SURFACE_TYPE_SHIFT | in brw_update_buffer_texture_surface() 741 surf[0] |= BRW_SURFACE_RC_READ_WRITE; in brw_update_buffer_texture_surface() 744 surf[1] = bo->offset; /* reloc */ in brw_update_buffer_texture_surface() 752 surf[2] = ((w & 0x7f) << BRW_SURFACE_WIDTH_SHIFT | in brw_update_buffer_texture_surface() 754 surf[3] = (((w >> 20) & 0x7f) << BRW_SURFACE_DEPTH_SHIFT | in brw_update_buffer_texture_surface() 757 surf[1] = 0; in brw_update_buffer_texture_surface() 758 surf[2] = 0; in brw_update_buffer_texture_surface() 759 surf[3] = 0; in brw_update_buffer_texture_surface() [all …]
|
D | brw_state_dump.c | 180 uint32_t *surf = brw->intel.batch.bo->virtual + offset; in dump_surface_state() local 183 get_965_surfacetype(GET_FIELD(surf[0], BRW_SURFACE_TYPE)), in dump_surface_state() 184 get_965_surface_format(GET_FIELD(surf[0], BRW_SURFACE_FORMAT))); in dump_surface_state() 187 GET_FIELD(surf[2], BRW_SURFACE_WIDTH) + 1, in dump_surface_state() 188 GET_FIELD(surf[2], BRW_SURFACE_HEIGHT) + 1, in dump_surface_state() 189 GET_FIELD(surf[2], BRW_SURFACE_LOD)); in dump_surface_state() 191 GET_FIELD(surf[3], BRW_SURFACE_PITCH) + 1, in dump_surface_state() 192 (surf[3] & BRW_SURFACE_TILED) ? in dump_surface_state() 193 ((surf[3] & BRW_SURFACE_TILED_Y) ? "Y" : "X") : "not"); in dump_surface_state() 195 GET_FIELD(surf[4], BRW_SURFACE_MIN_LOD)); in dump_surface_state() [all …]
|
/external/mesa3d/src/egl/main/ |
D | eglsurface.h | 82 _eglInitSurface(_EGLSurface *surf, _EGLDisplay *dpy, EGLint type, 87 _eglQuerySurface(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint attribute, EGLint *va… 91 _eglSurfaceAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint attribute, EGLint va… 95 _eglBindTexImage(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint buffer); 99 _eglSwapInterval(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint interval); 106 _eglGetSurface(_EGLSurface *surf) in _eglGetSurface() argument 108 if (surf) in _eglGetSurface() 109 _eglGetResource(&surf->Resource); in _eglGetSurface() 110 return surf; in _eglGetSurface() 118 _eglPutSurface(_EGLSurface *surf) in _eglPutSurface() argument [all …]
|
D | eglsurface.c | 48 _eglClampSwapInterval(_EGLSurface *surf, EGLint interval) in _eglClampSwapInterval() argument 50 EGLint bound = surf->Config->MaxSwapInterval; in _eglClampSwapInterval() 55 bound = surf->Config->MinSwapInterval; in _eglClampSwapInterval() 59 surf->SwapInterval = interval; in _eglClampSwapInterval() 65 _eglParseScreenSurfaceAttribList(_EGLSurface *surf, const EGLint *attrib_list) in _eglParseScreenSurfaceAttribList() argument 82 surf->Width = val; in _eglParseScreenSurfaceAttribList() 89 surf->Height = val; in _eglParseScreenSurfaceAttribList() 111 _eglParseSurfaceAttribList(_EGLSurface *surf, const EGLint *attrib_list) in _eglParseSurfaceAttribList() argument 113 _EGLDisplay *dpy = surf->Resource.Display; in _eglParseSurfaceAttribList() 114 EGLint type = surf->Type; in _eglParseSurfaceAttribList() [all …]
|
D | eglapi.c | 144 #define _EGL_CHECK_SURFACE(disp, surf, ret, drv) \ argument 145 _EGL_CHECK_OBJECT(disp, Surface, surf, ret, drv) 179 _eglCheckSurface(_EGLDisplay *disp, _EGLSurface *surf, const char *msg) in _eglCheckSurface() argument 184 if (!surf) { in _eglCheckSurface() 527 _EGLSurface *surf; in eglCreateWindowSurface() local 534 surf = drv->API.CreateWindowSurface(drv, disp, conf, window, attrib_list); in eglCreateWindowSurface() 535 ret = (surf) ? _eglLinkSurface(surf) : EGL_NO_SURFACE; in eglCreateWindowSurface() 548 _EGLSurface *surf; in eglCreatePixmapSurface() local 555 surf = drv->API.CreatePixmapSurface(drv, disp, conf, pixmap, attrib_list); in eglCreatePixmapSurface() 556 ret = (surf) ? _eglLinkSurface(surf) : EGL_NO_SURFACE; in eglCreatePixmapSurface() [all …]
|
/external/skia/gm/ |
D | surface.cpp | 127 auto surf(canvas->makeSurface(info, nullptr)); in onDraw() local 128 if (!surf) { in onDraw() 129 surf = SkSurface::MakeRaster(info); in onDraw() 131 drawInto(surf->getCanvas()); in onDraw() 133 sk_sp<SkImage> image(surf->makeImageSnapshot()); in onDraw() 136 auto surf2(surf->makeSurface(info)); in onDraw() 140 SkASSERT(equal(surf->props(), surf2->props())); in onDraw() 155 sk_sp<SkSurface> surf = canvas->makeSurface(info, nullptr); variable 156 if (!surf) { 157 surf = SkSurface::MakeRaster(info, nullptr); [all …]
|
D | image.cpp | 59 static void test_surface(SkCanvas* canvas, SkSurface* surf, bool usePaint) { in test_surface() argument 60 drawContents(surf, SK_ColorRED); in test_surface() 61 sk_sp<SkImage> imgR = surf->makeImageSnapshot(); in test_surface() 64 sk_sp<SkImage> imgR2 = surf->makeImageSnapshot(); in test_surface() 68 drawContents(surf, SK_ColorGREEN); in test_surface() 69 sk_sp<SkImage> imgG = surf->makeImageSnapshot(); in test_surface() 74 drawContents(surf, SK_ColorBLUE); in test_surface() 82 surf->draw(canvas, 0, 160, usePaint ? &paint : nullptr); in test_surface() 85 src1.iset(0, 0, surf->width(), surf->height()); in test_surface() 86 src2.iset(-surf->width() / 2, -surf->height() / 2, in test_surface() [all …]
|
/external/skia/tests/ |
D | SpecialSurfaceTest.cpp | 20 static const SkIRect& Subset(const SkSpecialSurface* surf) { in Subset() argument 21 return surf->subset(); in Subset() 32 static void test_surface(const sk_sp<SkSpecialSurface>& surf, in test_surface() argument 36 const SkIRect surfSubset = TestingSpecialSurfaceAccess::Subset(surf.get()); in test_surface() 42 SkCanvas* canvas = surf->getCanvas(); in test_surface() 47 sk_sp<SkSpecialImage> img(surf->makeImageSnapshot()); in test_surface() 54 REPORTER_ASSERT(reporter, !surf->getCanvas()); in test_surface() 60 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeRaster(info)); in DEF_TEST() local 62 test_surface(surf, reporter, 0); in DEF_TEST() 72 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromBitmap(subset, bm)); in DEF_TEST() local [all …]
|
D | PremulAlphaRoundTripTest.cpp | 64 static void test_premul_alpha_roundtrip(skiatest::Reporter* reporter, SkSurface* surf) { in test_premul_alpha_roundtrip() argument 65 SkCanvas* canvas = surf->getCanvas(); in test_premul_alpha_roundtrip() 102 sk_sp<SkSurface> surf(SkSurface::MakeRaster(info)); in DEF_TEST() local 104 test_premul_alpha_roundtrip(reporter, surf.get()); in DEF_TEST() 110 sk_sp<SkSurface> surf(SkSurface::MakeRenderTarget(ctxInfo.grContext(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 113 test_premul_alpha_roundtrip(reporter, surf.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_surface.c | 287 struct pipe_surface *surf) in svga_surface_destroy() argument 289 struct svga_surface *s = svga_surface(surf); in svga_surface_destroy() 290 struct svga_texture *t = svga_texture(surf->texture); in svga_surface_destroy() 291 struct svga_screen *ss = svga_screen(surf->texture->screen); in svga_surface_destroy() 298 pipe_resource_reference(&surf->texture, NULL); in svga_surface_destroy() 299 FREE(surf); in svga_surface_destroy() 304 svga_mark_surface_dirty(struct pipe_surface *surf) in svga_mark_surface_dirty() argument 306 struct svga_surface *s = svga_surface(surf); in svga_mark_surface_dirty() 309 struct svga_texture *tex = svga_texture(surf->texture); in svga_mark_surface_dirty() 315 if (surf->texture->target == PIPE_TEXTURE_CUBE) in svga_mark_surface_dirty() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vdpau/ |
D | presentation.c | 206 vlVdpOutputSurface *surf; in vlVdpPresentationQueueDisplay() local 220 surf = vlGetDataHTAB(surface); in vlVdpPresentationQueueDisplay() 221 if (!surf) in vlVdpPresentationQueueDisplay() 242 surf->timestamp = (vlVdpTime)earliest_presentation_time; in vlVdpPresentationQueueDisplay() 266 … vl_compositor_set_rgba_layer(cstate, compositor, 0, surf->sampler_view, &src_rect, NULL, NULL); in vlVdpPresentationQueueDisplay() 278 pipe->screen->fence_reference(pipe->screen, &surf->fence, NULL); in vlVdpPresentationQueueDisplay() 279 pipe->flush(pipe, &surf->fence); in vlVdpPresentationQueueDisplay() 313 vlVdpOutputSurface *surf; in vlVdpPresentationQueueBlockUntilSurfaceIdle() local 323 surf = vlGetDataHTAB(surface); in vlVdpPresentationQueueBlockUntilSurfaceIdle() 324 if (!surf) in vlVdpPresentationQueueBlockUntilSurfaceIdle() [all …]
|
/external/mesa3d/src/gbm/main/ |
D | gbm.c | 402 gbm_surface_destroy(struct gbm_surface *surf) in gbm_surface_destroy() argument 404 surf->gbm->surface_destroy(surf); in gbm_surface_destroy() 429 gbm_surface_lock_front_buffer(struct gbm_surface *surf) in gbm_surface_lock_front_buffer() argument 431 return surf->gbm->surface_lock_front_buffer(surf); in gbm_surface_lock_front_buffer() 447 gbm_surface_release_buffer(struct gbm_surface *surf, struct gbm_bo *bo) in gbm_surface_release_buffer() argument 449 surf->gbm->surface_release_buffer(surf, bo); in gbm_surface_release_buffer() 469 gbm_surface_has_free_buffers(struct gbm_surface *surf) in gbm_surface_has_free_buffers() argument 471 return surf->gbm->surface_has_free_buffers(surf); in gbm_surface_has_free_buffers()
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_surface.h | 61 svga_winsys_surface(struct vmw_svga_winsys_surface *surf) in svga_winsys_surface() argument 63 assert(!surf || surf->sid != SVGA3D_INVALID_ID); in svga_winsys_surface() 64 return (struct svga_winsys_surface *)surf; in svga_winsys_surface() 69 vmw_svga_winsys_surface(struct svga_winsys_surface *surf) in vmw_svga_winsys_surface() argument 71 return (struct vmw_svga_winsys_surface *)surf; in vmw_svga_winsys_surface()
|
/external/mesa3d/src/egl/drivers/dri2/ |
D | platform_drm.c | 43 struct gbm_dri_surface *surf = (struct gbm_dri_surface *) _surf; in lock_front_buffer() local 44 struct dri2_egl_surface *dri2_surf = surf->dri_private; in lock_front_buffer() 62 struct gbm_dri_surface *surf = (struct gbm_dri_surface *) _surf; in release_buffer() local 63 struct dri2_egl_surface *dri2_surf = surf->dri_private; in release_buffer() 76 struct gbm_dri_surface *surf = (struct gbm_dri_surface *) _surf; in has_free_buffers() local 77 struct dri2_egl_surface *dri2_surf = surf->dri_private; in has_free_buffers() 95 struct gbm_dri_surface *surf; in dri2_create_surface() local 113 surf = gbm_dri_surface((struct gbm_surface *) window); in dri2_create_surface() 114 dri2_surf->gbm_surf = surf; in dri2_create_surface() 115 dri2_surf->base.Width = surf->base.width; in dri2_create_surface() [all …]
|
/external/skia/src/gpu/ |
D | GrRenderTargetProxy.cpp | 35 GrRenderTargetProxy::GrRenderTargetProxy(sk_sp<GrSurface> surf) in GrRenderTargetProxy() argument 36 : INHERITED(std::move(surf), SkBackingFit::kExact) in GrRenderTargetProxy() 49 GrSurface* surf = INHERITED::instantiate(resourceProvider); in instantiate() local 50 if (!surf || !surf->asRenderTarget()) { in instantiate() 55 SkASSERT(fRenderTargetFlags == surf->asRenderTarget()->renderTargetPriv().flags()); in instantiate() 57 return surf->asRenderTarget(); in instantiate()
|
D | GrTextureRenderTargetProxy.cpp | 27 GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(sk_sp<GrSurface> surf) in GrTextureRenderTargetProxy() argument 28 : GrSurfaceProxy(surf, SkBackingFit::kExact) in GrTextureRenderTargetProxy() 29 , GrTextureProxy(sk_ref_sp(surf->asTexture())) in GrTextureRenderTargetProxy() 30 , GrRenderTargetProxy(sk_ref_sp(surf->asRenderTarget())) { in GrTextureRenderTargetProxy() 31 SkASSERT(surf->asTexture()); in GrTextureRenderTargetProxy() 32 SkASSERT(surf->asRenderTarget()); in GrTextureRenderTargetProxy()
|
D | GrTextureProxy.cpp | 19 GrTextureProxy::GrTextureProxy(sk_sp<GrSurface> surf) in GrTextureProxy() argument 20 : INHERITED(std::move(surf), SkBackingFit::kExact) { in GrTextureProxy() 24 GrSurface* surf = this->INHERITED::instantiate(resourceProvider); in instantiate() local 25 if (!surf) { in instantiate()
|
/external/mesa3d/src/gbm/backends/dri/ |
D | gbm_dri.c | 70 struct gbm_dri_surface *surf = data; in dri_get_buffers() local 71 struct gbm_dri_device *dri = gbm_dri_device(surf->base.gbm); in dri_get_buffers() 77 count, out_count, surf->dri_private); in dri_get_buffers() 83 struct gbm_dri_surface *surf = data; in dri_flush_front_buffer() local 84 struct gbm_dri_device *dri = gbm_dri_device(surf->base.gbm); in dri_flush_front_buffer() 87 dri->flush_front_buffer(driDrawable, surf->dri_private); in dri_flush_front_buffer() 96 struct gbm_dri_surface *surf = data; in dri_get_buffers_with_format() local 97 struct gbm_dri_device *dri = gbm_dri_device(surf->base.gbm); in dri_get_buffers_with_format() 104 count, out_count, surf->dri_private); in dri_get_buffers_with_format() 581 struct gbm_dri_surface *surf; in gbm_dri_surface_create() local [all …]
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_state.c | 1255 struct r600_surface *surf, in r600_init_color_surface() argument 1259 struct r600_texture *rtex = (struct r600_texture*)surf->base.texture; in r600_init_color_surface() 1260 unsigned level = surf->base.u.tex.level; in r600_init_color_surface() 1270 r600_init_flushed_depth_texture(&rctx->context, surf->base.texture, NULL); in r600_init_color_surface() 1278 surf->base.u.tex.first_layer; in r600_init_color_surface() 1302 desc = util_format_description(surf->base.format); in r600_init_color_surface() 1325 format = r600_translate_colorformat(surf->base.format); in r600_init_color_surface() 1328 swap = r600_translate_colorswap(surf->base.format); in r600_init_color_surface() 1346 surf->alphatest_bypass = ntype == V_0280A0_NUMBER_UINT || ntype == V_0280A0_NUMBER_SINT; in r600_init_color_surface() 1372 surf->export_16bpc = true; in r600_init_color_surface() [all …]
|
D | evergreen_state.c | 1240 struct r600_surface *surf) in evergreen_init_color_surface() argument 1243 struct r600_texture *rtex = (struct r600_texture*)surf->base.texture; in evergreen_init_color_surface() 1244 struct pipe_resource *pipe_tex = surf->base.texture; in evergreen_init_color_surface() 1245 unsigned level = surf->base.u.tex.level; in evergreen_init_color_surface() 1264 surf->base.u.tex.first_layer; in evergreen_init_color_surface() 1304 if (util_format_get_blocksize(surf->base.format) >= 16) in evergreen_init_color_surface() 1308 desc = util_format_description(surf->base.format); in evergreen_init_color_surface() 1344 format = r600_translate_colorformat(surf->base.format); in evergreen_init_color_surface() 1347 swap = r600_translate_colorswap(surf->base.format); in evergreen_init_color_surface() 1370 surf->alphatest_bypass = ntype == V_028C70_NUMBER_UINT || ntype == V_028C70_NUMBER_SINT; in evergreen_init_color_surface() [all …]
|
/external/mesa3d/src/gallium/state_trackers/egl/common/ |
D | egl_g3d_api.c | 462 destroy_surface(_EGLDisplay *dpy, _EGLSurface *surf) in destroy_surface() argument 464 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); in destroy_surface() 478 egl_g3d_destroy_surface(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf) in egl_g3d_destroy_surface() argument 480 if (_eglPutSurface(surf)) in egl_g3d_destroy_surface() 481 destroy_surface(dpy, surf); in egl_g3d_destroy_surface() 554 swap_buffers(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, in swap_buffers() argument 557 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); in swap_buffers() 571 if (ctx && ctx->DrawSurface == surf) in swap_buffers() 591 egl_g3d_swap_buffers(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf) in egl_g3d_swap_buffers() argument 593 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); in egl_g3d_swap_buffers() [all …]
|
/external/skia/src/effects/ |
D | SkTileImageFilter.cpp | 81 sk_sp<SkSurface> surf(input->makeTightSurface(ctx.outputProperties(), srcIRect.size())); in onFilterImage() local 82 if (!surf) { in onFilterImage() 86 SkCanvas* canvas = surf->getCanvas(); in onFilterImage() 96 subset = surf->makeImageSnapshot(); in onFilterImage() 101 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), dstIRect.size())); in onFilterImage() local 102 if (!surf) { in onFilterImage() 106 SkCanvas* canvas = surf->getCanvas(); in onFilterImage() 116 return surf->makeImageSnapshot(); in onFilterImage()
|