/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/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/gm/ |
D | image.cpp | 57 static void test_surface(SkCanvas* canvas, SkSurface* surf, bool usePaint) { in test_surface() argument 58 drawContents(surf, SK_ColorRED); in test_surface() 59 SkImage* imgR = surf->newImageSnapshot(); in test_surface() 62 SkImage* imgR2 = surf->newImageSnapshot(); in test_surface() 67 drawContents(surf, SK_ColorGREEN); in test_surface() 68 SkImage* imgG = surf->newImageSnapshot(); in test_surface() 73 drawContents(surf, SK_ColorBLUE); in test_surface() 81 surf->draw(canvas, 0, 160, usePaint ? &paint : NULL); in test_surface() 84 src1.iset(0, 0, surf->width(), surf->height()); in test_surface() 85 src2.iset(-surf->width() / 2, -surf->height() / 2, in test_surface() [all …]
|
D | cgm.c | 56 sk_surface_t* surf = sk_surface_new_raster(&info); in sk_test_c_api() local 57 do_draw(sk_surface_get_canvas(surf)); in sk_test_c_api() 59 sk_image_t* img0 = sk_surface_new_image_snapshot(surf); in sk_test_c_api() 60 sk_surface_unref(surf); in sk_test_c_api()
|
D | surface.cpp | 136 SkAutoTUnref<SkSurface> surf(canvas->newSurface(info, NULL)); in onDraw() local 137 if (!surf.get()) { in onDraw() 138 surf.reset(SkSurface::NewRaster(info)); in onDraw() 140 drawInto(surf->getCanvas()); in onDraw() 142 SkAutoTUnref<SkImage> image(surf->newImageSnapshot()); in onDraw() 149 SkASSERT(equal(surf->props(), surf2->props())); in onDraw()
|
/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 …]
|
D | egl_g3d_st.c | 157 _EGLSurface *surf = (_EGLSurface *) stfbi->st_manager_private; in egl_g3d_st_framebuffer_validate_pbuffer() local 158 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); in egl_g3d_st_framebuffer_validate_pbuffer() 193 _EGLSurface *surf = (_EGLSurface *) stfbi->st_manager_private; in egl_g3d_st_framebuffer_flush_front() local 194 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); in egl_g3d_st_framebuffer_flush_front() 209 _EGLSurface *surf = (_EGLSurface *) stfbi->st_manager_private; in egl_g3d_st_framebuffer_validate() local 210 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); in egl_g3d_st_framebuffer_validate() 289 egl_g3d_create_st_framebuffer(_EGLSurface *surf) in egl_g3d_create_st_framebuffer() argument 291 struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); in egl_g3d_create_st_framebuffer()
|
/external/mesa3d/src/gallium/tests/graw/ |
D | clear.c | 23 struct pipe_surface *surf; variable 34 graw_save_surface_to_file(ctx, surf, NULL); in draw() 89 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init() 90 if (surf == NULL) in init() 97 fb.cbufs[0] = surf; in init()
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | mask.c | 129 struct pipe_surface *surf; in read_alpha_mask() local 131 surf = pipe->create_surface(pipe, strb->texture, 0, 0, 0, in read_alpha_mask() 139 pipe_get_tile_rgba(surf, sx, y, width, 1, df); in read_alpha_mask() 146 pipe_surface_reference(&surf, NULL); in read_alpha_mask() 398 struct pipe_surface *surf, surf_tmpl; in mask_copy() local 403 surf = ctx->pipe->create_surface(ctx->pipe, layer->sampler_view->texture, in mask_copy() 405 if (surf && renderer_copy_begin(ctx->renderer, surf, VG_FALSE, src)) { in mask_copy() 416 pipe_surface_reference(&surf, NULL); in mask_copy() 427 struct pipe_surface *surf, surf_tmpl; in mask_layer_render_to() local 430 surf = pipe->create_surface(pipe, view->texture, &surf_tmpl); in mask_layer_render_to() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_emit.c | 326 struct r300_surface *surf = r300_surface(fb->cbufs[0]); in r300_emit_gpu_flush() local 328 height = surf->cbzb_height; in r300_emit_gpu_flush() 329 width = surf->cbzb_width; in r300_emit_gpu_flush() 378 struct r300_surface* surf; in r300_emit_fb_state() local 399 surf = r300_surface(fb->cbufs[i]); in r300_emit_fb_state() 401 OUT_CS_REG(R300_RB3D_COLOROFFSET0 + (4 * i), surf->offset); in r300_emit_fb_state() 402 OUT_CS_RELOC(surf); in r300_emit_fb_state() 404 OUT_CS_REG(R300_RB3D_COLORPITCH0 + (4 * i), surf->pitch); in r300_emit_fb_state() 405 OUT_CS_RELOC(surf); in r300_emit_fb_state() 410 surf = r300_surface(fb->cbufs[0]); in r300_emit_fb_state() [all …]
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
D | pp_init.c | 215 tmp_res.format = p->surf.format = PIPE_FORMAT_B8G8R8A8_UNORM; in pp_init_fbos() 221 tmp_res.bind = p->surf.usage = PIPE_BIND_RENDER_TARGET; in pp_init_fbos() 229 ppq->tmps[i] = p->pipe->create_surface(p->pipe, ppq->tmp[i], &p->surf); in pp_init_fbos() 239 &p->surf); in pp_init_fbos() 245 tmp_res.bind = p->surf.usage = PIPE_BIND_DEPTH_STENCIL; in pp_init_fbos() 247 tmp_res.format = p->surf.format = PIPE_FORMAT_S8_UINT_Z24_UNORM; in pp_init_fbos() 252 tmp_res.format = p->surf.format = PIPE_FORMAT_Z24_UNORM_S8_UINT; in pp_init_fbos() 260 ppq->stencils = p->pipe->create_surface(p->pipe, ppq->stencil, &p->surf); in pp_init_fbos()
|