Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 25 of 925) sorted by relevance

12345678910>>...37

/external/mesa3d/src/gallium/state_trackers/xvmc/
Dsurface.c47 XvMCSurfacePrivate *surface, in MacroBlocksToPipe() argument
100 GetPictureDescription(XvMCSurfacePrivate *surface, struct pipe_mpeg12_picture_desc *desc) in GetPictureDescription() argument
104 assert(surface && desc); in GetPictureDescription()
108 desc->picture_structure = surface->picture_structure; in GetPictureDescription()
110 if (surface->ref[i]) { in GetPictureDescription()
111 XvMCSurfacePrivate *ref = surface->ref[i]->privData; in GetPictureDescription()
120 RecursiveEndFrame(XvMCSurfacePrivate *surface) in RecursiveEndFrame() argument
125 assert(surface); in RecursiveEndFrame()
127 context_priv = surface->context->privData; in RecursiveEndFrame()
130 if (surface->ref[i]) { in RecursiveEndFrame()
[all …]
/external/skia/tests/
DSurfaceTest.cpp222 sk_sp<SkSurface>& surface, in test_canvas_peek() argument
227 surface->getCanvas()->clear(color); in test_canvas_peek()
230 bool success = surface->getCanvas()->peekPixels(&pmap); in test_canvas_peek()
234 const void* addr2 = surface->peekPixels(&pmap2) ? pmap2.addr() : nullptr; in test_canvas_peek()
251 auto surface(surface_func(kPremul_SkAlphaType, &requestInfo)); in DEF_TEST() local
252 test_canvas_peek(reporter, surface, requestInfo, true); in DEF_TEST()
258 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, &requestInfo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
259 test_canvas_peek(reporter, surface, requestInfo, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
263 static void test_snapshot_alphatype(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, in test_snapshot_alphatype() argument
265 REPORTER_ASSERT(reporter, surface); in test_snapshot_alphatype()
[all …]
/external/skqp/tests/
DSurfaceTest.cpp222 sk_sp<SkSurface>& surface, in test_canvas_peek() argument
227 surface->getCanvas()->clear(color); in test_canvas_peek()
230 bool success = surface->getCanvas()->peekPixels(&pmap); in test_canvas_peek()
234 const void* addr2 = surface->peekPixels(&pmap2) ? pmap2.addr() : nullptr; in test_canvas_peek()
251 auto surface(surface_func(kPremul_SkAlphaType, &requestInfo)); in DEF_TEST() local
252 test_canvas_peek(reporter, surface, requestInfo, true); in DEF_TEST()
258 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, &requestInfo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
259 test_canvas_peek(reporter, surface, requestInfo, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
263 static void test_snapshot_alphatype(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, in test_snapshot_alphatype() argument
265 REPORTER_ASSERT(reporter, surface); in test_snapshot_alphatype()
[all …]
/external/mesa3d/src/egl/main/
Deglsurface.c323 _eglQuerySurface(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface, in _eglQuerySurface() argument
328 *value = surface->Width; in _eglQuerySurface()
331 *value = surface->Height; in _eglQuerySurface()
334 *value = surface->Config->ConfigID; in _eglQuerySurface()
337 if (surface->Type == EGL_PBUFFER_BIT) in _eglQuerySurface()
338 *value = surface->LargestPbuffer; in _eglQuerySurface()
342 if (surface->Type == EGL_PBUFFER_BIT) in _eglQuerySurface()
343 *value = surface->TextureFormat; in _eglQuerySurface()
346 if (surface->Type == EGL_PBUFFER_BIT) in _eglQuerySurface()
347 *value = surface->TextureTarget; in _eglQuerySurface()
[all …]
/external/mesa3d/src/intel/isl/
DREADME6 those layouts, and queries the properties of surface formats.
27 counterpart, isl records the intent to use a surface as a depth or stencil
31 - `struct isl_surf` distinguishes between the surface's logical dimension
41 ISL takes care in its equations to correctly handle conversion among surface
43 between a surface's logical layout in the client API and its physical layout
49 - sa: physical surface samples
50 - el: physical surface elements
51 - sa_rows: rows of physical surface samples
52 - el_rows: rows of physical surface elements
56 hardware generation and reflect the surface's layout in memory.
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
Dr600_texture.c57 if (rdst->surface.bpe != rsrc->surface.bpe) in si_prepare_for_dma_blit()
188 *stride = rtex->surface.u.gfx9.surf_pitch * rtex->surface.bpe; in r600_texture_get_offset()
189 *layer_stride = rtex->surface.u.gfx9.surf_slice_size; in r600_texture_get_offset()
196 return box->z * rtex->surface.u.gfx9.surf_slice_size + in r600_texture_get_offset()
197 rtex->surface.u.gfx9.offset[level] + in r600_texture_get_offset()
198 (box->y / rtex->surface.blk_h * in r600_texture_get_offset()
199 rtex->surface.u.gfx9.surf_pitch + in r600_texture_get_offset()
200 box->x / rtex->surface.blk_w) * rtex->surface.bpe; in r600_texture_get_offset()
202 *stride = rtex->surface.u.legacy.level[level].nblk_x * in r600_texture_get_offset()
203 rtex->surface.bpe; in r600_texture_get_offset()
[all …]
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_screen_svga.c177 struct vmw_svga_winsys_surface *surface; in vmw_svga_winsys_surface_create() local
183 surface = CALLOC_STRUCT(vmw_svga_winsys_surface); in vmw_svga_winsys_surface_create()
184 if(!surface) in vmw_svga_winsys_surface_create()
187 pipe_reference_init(&surface->refcnt, 1); in vmw_svga_winsys_surface_create()
188 p_atomic_set(&surface->validated, 0); in vmw_svga_winsys_surface_create()
189 surface->screen = vws; in vmw_svga_winsys_surface_create()
190 (void) mtx_init(&surface->mutex, mtx_plain); in vmw_svga_winsys_surface_create()
191 surface->shared = !!(usage & SVGA_SURFACE_USAGE_SHARED); in vmw_svga_winsys_surface_create()
192 provider = (surface->shared) ? vws->pools.gmr : vws->pools.mob_fenced; in vmw_svga_winsys_surface_create()
215 if (buffer_size < VMW_TRY_CACHED_SIZE && !surface->shared) { in vmw_svga_winsys_surface_create()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_image.c68 struct radeon_surf *surface, in radv_init_surface() argument
80 surface->blk_w = vk_format_get_blockwidth(pCreateInfo->format); in radv_init_surface()
81 surface->blk_h = vk_format_get_blockheight(pCreateInfo->format); in radv_init_surface()
83 surface->bpe = vk_format_get_blocksize(vk_format_depth_only(pCreateInfo->format)); in radv_init_surface()
85 if (surface->bpe == 3) { in radv_init_surface()
86 surface->bpe = 4; in radv_init_surface()
88 surface->flags = RADEON_SURF_SET(array_mode, MODE); in radv_init_surface()
93 surface->flags |= RADEON_SURF_SET(RADEON_SURF_TYPE_1D_ARRAY, TYPE); in radv_init_surface()
95 surface->flags |= RADEON_SURF_SET(RADEON_SURF_TYPE_1D, TYPE); in radv_init_surface()
99 surface->flags |= RADEON_SURF_SET(RADEON_SURF_TYPE_2D_ARRAY, TYPE); in radv_init_surface()
[all …]
/external/skqp/src/gpu/
DGrSurfaceProxy.cpp83 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, GrSurfaceOrigin origin, SkBackingFit fit) in GrSurfaceProxy() argument
84 : INHERITED(std::move(surface)) in GrSurfaceProxy()
114 GrSurface* surface, bool needsStencil) { in AttachStencilIfNeeded() argument
116 GrRenderTarget* rt = surface->asRenderTarget(); in AttachStencilIfNeeded()
154 sk_sp<GrSurface> surface; in createSurfaceImpl() local
171 surface = resourceProvider->createTexture(desc, fBudgeted, texels.get(), mipCount); in createSurfaceImpl()
172 if (surface) { in createSurfaceImpl()
173 SkASSERT(surface->asTexture()); in createSurfaceImpl()
174 SkASSERT(GrMipMapped::kYes == surface->asTexture()->texturePriv().mipMapped()); in createSurfaceImpl()
178 surface = resourceProvider->createApproxTexture(desc, resourceProviderFlags); in createSurfaceImpl()
[all …]
/external/skia/src/gpu/
DGrSurfaceProxy.cpp85 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, GrSurfaceOrigin origin, SkBackingFit fit) in GrSurfaceProxy() argument
86 : INHERITED(std::move(surface)) in GrSurfaceProxy()
111 GrSurface* surface, bool needsStencil) { in AttachStencilIfNeeded() argument
113 GrRenderTarget* rt = surface->asRenderTarget(); in AttachStencilIfNeeded()
151 sk_sp<GrSurface> surface; in createSurfaceImpl() local
168 surface = resourceProvider->createTexture(desc, fBudgeted, texels.get(), mipCount); in createSurfaceImpl()
169 if (surface) { in createSurfaceImpl()
170 SkASSERT(surface->asTexture()); in createSurfaceImpl()
171 SkASSERT(GrMipMapped::kYes == surface->asTexture()->texturePriv().mipMapped()); in createSurfaceImpl()
175 surface = resourceProvider->createApproxTexture(desc, resourceProviderFlags); in createSurfaceImpl()
[all …]
DGrResourceAllocator.cpp218 void GrResourceAllocator::recycleSurface(sk_sp<GrSurface> surface) { in recycleSurface() argument
219 const GrScratchKey &key = surface->resourcePriv().getScratchKey(); in recycleSurface()
225 if (surface->getUniqueKey().isValid()) { in recycleSurface()
233 SkDebugf("putting surface %d back into pool\n", surface->uniqueID().asUInt()); in recycleSurface()
236 fFreePool.insert(key, surface.release()); in recycleSurface()
246 sk_sp<GrSurface> surface = fResourceProvider->findByUniqueKey<GrSurface>( in findSurfaceFor() local
248 if (surface) { in findSurfaceFor()
249 if (!GrSurfaceProxyPriv::AttachStencilIfNeeded(fResourceProvider, surface.get(), in findSurfaceFor()
254 return surface; in findSurfaceFor()
266 sk_sp<GrSurface> surface(fFreePool.findAndRemove(key, filter)); in findSurfaceFor() local
[all …]
/external/skia/experimental/wasm-skp-debugger/
Dcpu.js15 var surface = DebuggerView.MakeSurface(canvas.width, canvas.height);
16 if (surface) {
17 surface._canvas = canvas;
19 return surface;
41 var surface = this._getRasterDirectSurface(imageInfo, pixelPtr, width*4);
42 if (surface) {
43 surface._canvas = null;
44 surface._width = width;
45 surface._height = height;
46 surface._pixelLen = pixelLen;
[all …]
/external/skia/modules/canvaskit/
Dcpu.js17 var surface = CanvasKit.MakeSurface(canvas.width, canvas.height);
18 if (surface) {
19 surface._canvas = canvas;
21 return surface;
43 var surface = this._getRasterDirectSurface(imageInfo, pixelPtr, width*4);
44 if (surface) {
45 surface._canvas = null;
46 surface._width = width;
47 surface._height = height;
48 surface._pixelLen = pixelLen;
[all …]
/external/skqp/experimental/canvaskit/
Dcpu.js17 var surface = CanvasKit.MakeSurface(canvas.width, canvas.height);
18 if (surface) {
19 surface._canvas = canvas;
21 return surface;
43 var surface = this._getRasterDirectSurface(imageInfo, pixelPtr, width*4);
44 if (surface) {
45 surface._canvas = null;
46 surface._width = width;
47 surface._height = height;
48 surface._pixelLen = pixelLen;
[all …]
/external/harfbuzz_ng/util/
Dhelper-cairo-ansi.cc34 helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface, in helper_cairo_surface_write_to_ansi_stream() argument
38 unsigned int width = cairo_image_surface_get_width (surface); in helper_cairo_surface_write_to_ansi_stream()
39 unsigned int height = cairo_image_surface_get_height (surface); in helper_cairo_surface_write_to_ansi_stream()
40 if (cairo_image_surface_get_format (surface) != CAIRO_FORMAT_RGB24) { in helper_cairo_surface_write_to_ansi_stream()
43 if (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_A8) { in helper_cairo_surface_write_to_ansi_stream()
47 cairo_mask_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream()
51 cairo_set_source_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream()
55 surface = new_surface; in helper_cairo_surface_write_to_ansi_stream()
57 cairo_surface_reference (surface); in helper_cairo_surface_write_to_ansi_stream()
59 unsigned int stride = cairo_image_surface_get_stride (surface); in helper_cairo_surface_write_to_ansi_stream()
[all …]
Dhelper-cairo.cc51 cairo_surface_t *surface; in _cairo_eps_surface_create_for_stream() local
53 surface = cairo_ps_surface_create_for_stream (write_func, closure, width, height); in _cairo_eps_surface_create_for_stream()
54 cairo_ps_surface_set_eps (surface, true); in _cairo_eps_surface_create_for_stream()
56 return surface; in _cairo_eps_surface_create_for_stream()
180 cairo_surface_t *surface; member
191 status = helper_cairo_surface_write_to_ansi_stream (closure->surface, in finalize_ansi()
206 cairo_surface_t *surface; in _cairo_ansi_surface_create_for_stream() local
212 surface = cairo_image_surface_create (CAIRO_FORMAT_A8, w, h); in _cairo_ansi_surface_create_for_stream()
216 surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, w, h); in _cairo_ansi_surface_create_for_stream()
219 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h); in _cairo_ansi_surface_create_for_stream()
[all …]
/external/skqp/experimental/canvaskit/tests/
Dpath.spec.js36 function reportSurface(surface, testname, done) { argument
41 let pixels = surface.getCanvas().readPixels(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);
55 const surface = CanvasKit.MakeCanvasSurface('test');
56 expect(surface).toBeTruthy('Could not make surface')
57 if (!surface) {
61 const canvas = surface.getCanvas();
103 surface.flush();
108 reportSurface(surface, 'path_api_example', done);
116 const surface = CanvasKit.MakeCanvasSurface('test');
117 expect(surface).toBeTruthy('Could not make surface')
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_texture.c57 if (rdst->surface.bpe != rsrc->surface.bpe) in r600_prepare_for_dma_blit()
179 *stride = rtex->surface.u.legacy.level[level].nblk_x * in r600_texture_get_offset()
180 rtex->surface.bpe; in r600_texture_get_offset()
181 assert((uint64_t)rtex->surface.u.legacy.level[level].slice_size_dw * 4 <= UINT_MAX); in r600_texture_get_offset()
182 *layer_stride = (uint64_t)rtex->surface.u.legacy.level[level].slice_size_dw * 4; in r600_texture_get_offset()
185 return rtex->surface.u.legacy.level[level].offset; in r600_texture_get_offset()
189 return rtex->surface.u.legacy.level[level].offset + in r600_texture_get_offset()
190 box->z * (uint64_t)rtex->surface.u.legacy.level[level].slice_size_dw * 4 + in r600_texture_get_offset()
191 (box->y / rtex->surface.blk_h * in r600_texture_get_offset()
192 rtex->surface.u.legacy.level[level].nblk_x + in r600_texture_get_offset()
[all …]
/external/skia/modules/canvaskit/tests/
Dpath.spec.js20 const surface = CanvasKit.MakeCanvasSurface('test');
21 expect(surface).toBeTruthy('Could not make surface')
22 if (!surface) {
26 const canvas = surface.getCanvas();
68 surface.flush();
73 reportSurface(surface, 'path_api_example', done);
81 const surface = CanvasKit.MakeCanvasSurface('test');
82 expect(surface).toBeTruthy('Could not make surface')
83 if (!surface) {
87 const canvas = surface.getCanvas();
[all …]
/external/deqp/modules/egl/
DteglQuerySurfaceTests.cpp64 …s (tcu::TestLog& log, const Library& egl, EGLDisplay display, EGLSurface surface, const EGLint* at… in logSurfaceAttributes() argument
67 …logSurfaceAttribute(log, attributes[ndx], eglu::querySurfaceInt(egl, display, surface, attributes[… in logSurfaceAttributes()
70 …onSurfaceAttributes (tcu::TestLog& log, const Library& egl, EGLDisplay display, EGLSurface surface) in logCommonSurfaceAttributes() argument
87 logSurfaceAttributes(log, egl, display, surface, attributes, DE_LENGTH_OF_ARRAY(attributes)); in logCommonSurfaceAttributes()
90 …erSurfaceAttributes (tcu::TestLog& log, const Library& egl, EGLDisplay display, EGLSurface surface) in logPbufferSurfaceAttributes() argument
101 logSurfaceAttributes(log, egl, display, surface, attributes, DE_LENGTH_OF_ARRAY(attributes)); in logPbufferSurfaceAttributes()
109 void checkCommonAttributes (EGLDisplay display, EGLSurface surface, const ConfigInfo& info);
110 void checkNonPbufferAttributes (EGLDisplay display, EGLSurface surface);
118 void QuerySurfaceCase::checkCommonAttributes (EGLDisplay display, EGLSurface surface, const ConfigI… in checkCommonAttributes() argument
127 const EGLint id = eglu::querySurfaceInt(egl, display, surface, EGL_CONFIG_ID); in checkCommonAttributes()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_debug_image.c99 struct pipe_surface *surface) in debug_dump_surface() argument
105 if (!surface) in debug_dump_surface()
114 texture = surface->texture; in debug_dump_surface()
116 data = pipe_transfer_map(pipe, texture, surface->u.tex.level, in debug_dump_surface()
117 surface->u.tex.first_layer, in debug_dump_surface()
119 0, 0, surface->width, surface->height, &transfer); in debug_dump_surface()
126 util_format_get_nblocksx(texture->format, surface->width), in debug_dump_surface()
127 util_format_get_nblocksy(texture->format, surface->height), in debug_dump_surface()
140 struct pipe_surface *surface, surf_tmpl; in debug_dump_texture() local
147 surface = pipe->create_surface(pipe, texture, &surf_tmpl); in debug_dump_texture()
[all …]
/external/skqp/fuzz/
DFuzzDrawFunctions.cpp117 sk_sp<SkSurface> surface; in fuzz_drawText() local
118 init_surface(fuzz, &surface); in fuzz_drawText()
152 SkCanvas* cnv = surface->getCanvas(); in fuzz_drawText()
161 sk_sp<SkSurface> surface; in fuzz_drawCircle() local
162 init_surface(fuzz, &surface); in fuzz_drawCircle()
166 surface->getCanvas()->drawCircle(a, b, c, p); in fuzz_drawCircle()
172 sk_sp<SkSurface> surface; in fuzz_drawLine() local
173 init_surface(fuzz, &surface); in fuzz_drawLine()
177 surface->getCanvas()->drawLine(a, b, c, d, p); in fuzz_drawLine()
183 sk_sp<SkSurface> surface; in fuzz_drawRect() local
[all …]
/external/skia/fuzz/
DFuzzDrawFunctions.cpp117 sk_sp<SkSurface> surface; in fuzz_drawText() local
118 init_surface(fuzz, &surface); in fuzz_drawText()
152 SkCanvas* cnv = surface->getCanvas(); in fuzz_drawText()
161 sk_sp<SkSurface> surface; in fuzz_drawCircle() local
162 init_surface(fuzz, &surface); in fuzz_drawCircle()
166 surface->getCanvas()->drawCircle(a, b, c, p); in fuzz_drawCircle()
172 sk_sp<SkSurface> surface; in fuzz_drawLine() local
173 init_surface(fuzz, &surface); in fuzz_drawLine()
177 surface->getCanvas()->drawLine(a, b, c, d, p); in fuzz_drawLine()
183 sk_sp<SkSurface> surface; in fuzz_drawRect() local
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dcik_sdma.c121 unsigned tile_index = tex->surface.u.legacy.tiling_index[level]; in encode_tile_info()
122 unsigned macro_tile_index = tex->surface.u.legacy.macro_tile_index; in encode_tile_info()
126 return (set_bpp ? util_logbase2(tex->surface.bpe) : 0) | in encode_tile_info()
130 ((util_logbase2(tex->surface.u.legacy.tile_split >> 6)) << 11) | in encode_tile_info()
149 unsigned bpp = rdst->surface.bpe; in cik_sdma_copy_texture()
151 rdst->surface.u.legacy.level[dst_level].offset; in cik_sdma_copy_texture()
153 rsrc->surface.u.legacy.level[src_level].offset; in cik_sdma_copy_texture()
154 unsigned dst_mode = rdst->surface.u.legacy.level[dst_level].mode; in cik_sdma_copy_texture()
155 unsigned src_mode = rsrc->surface.u.legacy.level[src_level].mode; in cik_sdma_copy_texture()
156 unsigned dst_tile_index = rdst->surface.u.legacy.tiling_index[dst_level]; in cik_sdma_copy_texture()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_framebuffer.c60 struct pipe_surface *surface) in update_framebuffer_size() argument
62 assert(surface); in update_framebuffer_size()
63 assert(surface->width < USHRT_MAX); in update_framebuffer_size()
64 assert(surface->height < USHRT_MAX); in update_framebuffer_size()
65 framebuffer->width = MIN2(framebuffer->width, surface->width); in update_framebuffer_size()
66 framebuffer->height = MIN2(framebuffer->height, surface->height); in update_framebuffer_size()
153 if (strb->surface) { in st_update_framebuffer_state()
154 framebuffer.cbufs[i] = strb->surface; in st_update_framebuffer_state()
155 update_framebuffer_size(&framebuffer, strb->surface); in st_update_framebuffer_state()
180 framebuffer.zsbuf = strb->surface; in st_update_framebuffer_state()
[all …]

12345678910>>...37