Home
last modified time | relevance | path

Searched refs:blitter (Results 1 – 25 of 43) sorted by relevance

12

/external/mesa3d/src/gallium/auxiliary/util/
Du_blitter.h76 void (*draw_rectangle)(struct blitter_context *blitter,
121 void util_blitter_destroy(struct blitter_context *blitter);
127 struct pipe_context *util_blitter_get_pipe(struct blitter_context *blitter) in util_blitter_get_pipe() argument
129 return blitter->pipe; in util_blitter_get_pipe()
134 void util_blitter_draw_rectangle(struct blitter_context *blitter,
160 void util_blitter_clear(struct blitter_context *blitter,
174 boolean util_blitter_is_copy_supported(struct blitter_context *blitter,
200 void util_blitter_copy_texture(struct blitter_context *blitter,
228 void util_blitter_copy_texture_view(struct blitter_context *blitter,
260 void util_blitter_copy_buffer(struct blitter_context *blitter,
[all …]
Du_blitter.c290 void util_blitter_destroy(struct blitter_context *blitter) in util_blitter_destroy() argument
292 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter; in util_blitter_destroy()
293 struct pipe_context *pipe = blitter->pipe; in util_blitter_destroy()
858 void util_blitter_draw_rectangle(struct blitter_context *blitter, in util_blitter_draw_rectangle() argument
865 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter; in util_blitter_draw_rectangle()
882 static void util_blitter_clear_custom(struct blitter_context *blitter, in util_blitter_clear_custom() argument
891 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter; in util_blitter_clear_custom()
937 blitter->draw_rectangle(blitter, 0, 0, width, height, depth, in util_blitter_clear_custom()
945 void util_blitter_clear(struct blitter_context *blitter, in util_blitter_clear() argument
953 util_blitter_clear_custom(blitter, width, height, num_cbufs, in util_blitter_clear()
[all …]
/external/skia/src/core/
DSkScan.cpp14 static inline void blitrect(SkBlitter* blitter, const SkIRect& r) { in blitrect() argument
15 blitter->blitRect(r.fLeft, r.fTop, r.width(), r.height()); in blitrect()
19 SkBlitter* blitter) { in FillIRect() argument
26 blitrect(blitter, r); in FillIRect()
30 blitrect(blitter, rr); in FillIRect()
38 blitrect(blitter, rr); in FillIRect()
43 blitrect(blitter, r); in FillIRect()
49 SkBlitter* blitter) { in FillXRect() argument
53 SkScan::FillIRect(r, clip, blitter); in FillXRect()
57 SkBlitter* blitter) { in FillRect() argument
[all …]
DSkScan_Antihair.cpp68 static void call_hline_blitter(SkBlitter* blitter, int x, int y, int count, in call_hline_blitter() argument
83 blitter->blitAntiH(x, y, aa, runs); in call_hline_blitter()
96 void setup(SkBlitter* blitter) { in setup() argument
97 fBlitter = blitter; in setup()
172 SkBlitter* blitter = this->getBlitter(); in drawLine() local
176 blitter->blitAntiV2(x, lower_y - 1, 255 - a, a); in drawLine()
306 const SkIRect* clip, SkBlitter* blitter) { in do_anti_hairline() argument
330 do_anti_hairline(x0, y0, hx, hy, clip, blitter); in do_anti_hairline()
331 do_anti_hairline(hx, hy, x1, y1, clip, blitter); in do_anti_hairline()
498 rectClipper.init(blitter, *clip); in do_anti_hairline()
[all …]
DSkScan_Hairline.cpp15 SkBlitter* blitter) { in horiline() argument
19 blitter->blitH(x, fy >> 16, 1); in horiline()
25 SkBlitter* blitter) { in vertline() argument
29 blitter->blitH(fx >> 16, y, 1); in vertline()
55 SkBlitter* blitter = origBlitter; in HairLineRgn() local
102 blitter = clipper.apply(origBlitter, clip); in HairLineRgn()
123 horiline(ix0, ix1, startY, slope, blitter); in HairLineRgn()
138 vertline(iy0, iy1, startX, slope, blitter); in HairLineRgn()
147 SkBlitter* blitter) { in HairRect() argument
165 wrapper.init(clip, blitter); in HairRect()
[all …]
DSkScan_Path.cpp127 typedef void (*PrePostProc)(SkBlitter* blitter, int y, bool isStartOfScanline);
132 SkBlitter* blitter, int start_y, int stop_y, in walk_edges() argument
150 proc(blitter, curr_y, PREPOST_START); // pre-proc in walk_edges()
163 blitter->blitH(left, curr_y, width); in walk_edges()
207 blitter->blitH(left, curr_y, width); in walk_edges()
212 proc(blitter, curr_y, PREPOST_END); // post-proc in walk_edges()
245 SkBlitter* blitter, int start_y, int stop_y, in walk_convex_edges() argument
287 blitter->blitRect(L, local_top, R - L, count); in walk_convex_edges()
295 blitter->blitH(L, local_top, R - L); in walk_convex_edges()
341 void setBlitter(SkBlitter* blitter, const SkIRect& clip, int shift) { in setBlitter() argument
[all …]
DSkBlitter_Sprite.cpp56 SkSpriteBlitter* blitter; in ChooseSprite() local
60 blitter = SkSpriteBlitter::ChooseD16(source, paint, allocator); in ChooseSprite()
64 blitter = SkSpriteBlitter::ChooseS32(source, paint, allocator); in ChooseSprite()
66 blitter = SkSpriteBlitter::ChooseL32(source, paint, allocator); in ChooseSprite()
70 blitter = SkSpriteBlitter::ChooseF16(source, paint, allocator); in ChooseSprite()
73 blitter = nullptr; in ChooseSprite()
77 if (blitter) { in ChooseSprite()
78 blitter->setup(dst, left, top, paint); in ChooseSprite()
80 return blitter; in ChooseSprite()
DSkMaskFilter.cpp52 static void blitClippedMask(SkBlitter* blitter, const SkMask& mask, in blitClippedMask() argument
56 blitter->blitMask(mask, r); in blitClippedMask()
60 static void blitClippedRect(SkBlitter* blitter, const SkIRect& rect, const SkIRect& clipR) { in blitClippedRect() argument
63 blitter->blitRect(r.left(), r.top(), r.width(), r.height()); in blitClippedRect()
81 const SkIRect& clipR, SkBlitter* blitter) { in draw_nine_clipped() argument
93 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped()
103 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped()
113 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped()
124 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped()
133 blitClippedRect(blitter, innerR, clipR); in draw_nine_clipped()
[all …]
DSkDraw.cpp291 SkAutoBlitterChoose blitter(fDst, *fMatrix, paint); in drawPaint() local
292 SkScan::FillIRect(devRect, *fRC, blitter.get()); in drawPaint()
311 Proc chooseProc(SkBlitter** blitter);
318 int count, SkBlitter* blitter) { in bw_pt_rect_hair_proc() argument
326 blitter->blitH(x, y, 1); in bw_pt_rect_hair_proc()
333 SkBlitter* blitter) { in bw_pt_rect_16_hair_proc() argument
337 const SkPixmap* dst = blitter->justAnOpaqueColor(&value); in bw_pt_rect_16_hair_proc()
354 SkBlitter* blitter) { in bw_pt_rect_32_hair_proc() argument
358 const SkPixmap* dst = blitter->justAnOpaqueColor(&value); in bw_pt_rect_32_hair_proc()
374 int count, SkBlitter* blitter) { in bw_pt_hair_proc() argument
[all …]
DSkBlitter.cpp86 static inline void bits_to_runs(SkBlitter* blitter, int x, int y, in bits_to_runs() argument
107 blitter->blitH(pos, y, x - pos); in bits_to_runs()
118 blitter->blitH(pos, y, x - pos); in bits_to_runs()
546 SkBlitter* blitter = fBlitter; in blitMask() local
549 blitter->blitMask(mask, r); in blitMask()
560 SkBlitter* SkBlitterClipper::apply(SkBlitter* blitter, const SkRegion* clip, in apply() argument
566 blitter = &fNullBlitter; in apply()
569 fRectBlitter.init(blitter, clipR); in apply()
570 blitter = &fRectBlitter; in apply()
573 fRgnBlitter.init(blitter, clip); in apply()
[all …]
DSkScan_AntiPath.cpp627 SkBlitter* blitter, bool forceRLE) { in AntiFillPath() argument
644 blitter->blitRegion(origClip); in AntiFillPath()
663 SkScan::FillPath(path, origClip, blitter); in AntiFillPath()
686 SkScanClipper clipper(blitter, clipRgn, ir); in AntiFillPath()
691 blitter->blitRegion(*clipRgn); in AntiFillPath()
697 blitter = clipper.getBlitter(); in AntiFillPath()
700 sk_blit_above(blitter, ir, *clipRgn); in AntiFillPath()
718 MaskSuperBlitter superBlit(blitter, ir, *clipRgn, isInverse); in AntiFillPath()
722 SuperBlitter superBlit(blitter, ir, *clipRgn, isInverse); in AntiFillPath()
727 sk_blit_below(blitter, ir, *clipRgn); in AntiFillPath()
[all …]
DSkSpriteBlitter_RGB16.cpp316 SkSpriteBlitter* blitter = nullptr; in ChooseD16() local
324 blitter = allocator->createT<Sprite_D16_S32_BlitRowProc>(source); in ChooseD16()
332 blitter = allocator->createT<Sprite_D16_S4444_Opaque>(source); in ChooseD16()
334 blitter = allocator->createT<Sprite_D16_S4444_Blend>(source, alpha >> 4); in ChooseD16()
339 blitter = allocator->createT<Sprite_D16_S16_Opaque>(source); in ChooseD16()
341 blitter = allocator->createT<Sprite_D16_S16_Blend>(source, alpha); in ChooseD16()
354 blitter = allocator->createT<Sprite_D16_SIndex8_Opaque>(source); in ChooseD16()
356 blitter = allocator->createT<Sprite_D16_SIndex8_Blend>(source, alpha); in ChooseD16()
360 blitter = allocator->createT<Sprite_D16_SIndex8A_Opaque>(source); in ChooseD16()
362 blitter = allocator->createT<Sprite_D16_SIndex8A_Blend>(source, alpha); in ChooseD16()
[all …]
DSkRasterClip.cpp407 SkBlitter* blitter) { in SkAAClipBlitterWrapper() argument
408 this->init(clip, blitter); in SkAAClipBlitterWrapper()
412 SkBlitter* blitter) { in SkAAClipBlitterWrapper() argument
413 SkASSERT(blitter); in SkAAClipBlitterWrapper()
416 fAABlitter.init(blitter, aaclip); in SkAAClipBlitterWrapper()
422 void SkAAClipBlitterWrapper::init(const SkRasterClip& clip, SkBlitter* blitter) { in init() argument
423 SkASSERT(blitter); in init()
426 fBlitter = blitter; in init()
430 fAABlitter.init(blitter, &aaclip); in init()
DSkSpriteBlitter_ARGB32.cpp268 SkSpriteBlitter* blitter = nullptr; in ChooseL32() local
276 blitter = allocator->createT<Sprite_D32_S4444_XferFilter>(source, paint); in ChooseL32()
278 blitter = allocator->createT<Sprite_D32_S4444_Opaque>(source); in ChooseL32()
280 blitter = allocator->createT<Sprite_D32_S4444>(source); in ChooseL32()
287 blitter = allocator->createT<Sprite_D32_S32A_XferFilter>(source, paint); in ChooseL32()
291 blitter = allocator->createT<Sprite_D32_S32>(source, alpha); in ChooseL32()
297 return blitter; in ChooseL32()
DSkBlitter.h165 void init(SkBlitter* blitter, const SkIRect& clipRect) { in init() argument
167 fBlitter = blitter; in init()
199 void init(SkBlitter* blitter, const SkRegion* clipRgn) { in init() argument
201 fBlitter = blitter; in init()
233 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip,
DSkScanPriv.h18 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& bounds,
33 SkBlitter* blitter, int start_y, int stop_y, int shiftEdgesUp,
DSkAAClip.h105 void init(SkBlitter* blitter, const SkAAClip* aaclip) { in init() argument
107 fBlitter = blitter; in init()
/external/mesa3d/src/gallium/drivers/i915/
Di915_surface.c62 if (!util_blitter_is_copy_supported(i915->blitter, dst, src, in i915_surface_copy_render()
69 util_blitter_save_blend(i915->blitter, (void *)i915->blend); in i915_surface_copy_render()
70 util_blitter_save_depth_stencil_alpha(i915->blitter, (void *)i915->depth_stencil); in i915_surface_copy_render()
71 util_blitter_save_stencil_ref(i915->blitter, &i915->stencil_ref); in i915_surface_copy_render()
72 util_blitter_save_rasterizer(i915->blitter, (void *)i915->rasterizer); in i915_surface_copy_render()
73 util_blitter_save_fragment_shader(i915->blitter, i915->saved_fs); in i915_surface_copy_render()
74 util_blitter_save_vertex_shader(i915->blitter, i915->saved_vs); in i915_surface_copy_render()
75 util_blitter_save_viewport(i915->blitter, &i915->viewport); in i915_surface_copy_render()
76 util_blitter_save_vertex_elements(i915->blitter, i915->saved_velems); in i915_surface_copy_render()
77 util_blitter_save_vertex_buffers(i915->blitter, i915->saved_nr_vertex_buffers, in i915_surface_copy_render()
[all …]
Di915_context.c119 if (i915->blitter) in i915_destroy()
120 util_blitter_destroy(i915->blitter); in i915_destroy()
198 i915->blitter = util_blitter_create(&i915->base); in i915_create_context()
199 assert(i915->blitter); in i915_create_context()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dr600_blit.c51 util_blitter_save_blend(rctx->blitter, rctx->queued.named.blend); in r600_blitter_begin()
52 util_blitter_save_depth_stencil_alpha(rctx->blitter, rctx->queued.named.dsa); in r600_blitter_begin()
53 util_blitter_save_stencil_ref(rctx->blitter, &rctx->stencil_ref); in r600_blitter_begin()
54 util_blitter_save_rasterizer(rctx->blitter, rctx->queued.named.rasterizer); in r600_blitter_begin()
55 util_blitter_save_fragment_shader(rctx->blitter, rctx->ps_shader); in r600_blitter_begin()
56 util_blitter_save_vertex_shader(rctx->blitter, rctx->vs_shader); in r600_blitter_begin()
57 util_blitter_save_vertex_elements(rctx->blitter, rctx->vertex_elements); in r600_blitter_begin()
59 util_blitter_save_viewport(rctx->blitter, &rctx->queued.named.viewport->viewport); in r600_blitter_begin()
61 util_blitter_save_vertex_buffers(rctx->blitter, in r600_blitter_begin()
64 util_blitter_save_so_targets(rctx->blitter, rctx->num_so_targets, in r600_blitter_begin()
[all …]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_blit.c58 util_blitter_save_blend(r300->blitter, r300->blend_state.state); in r300_blitter_begin()
59 util_blitter_save_depth_stencil_alpha(r300->blitter, r300->dsa_state.state); in r300_blitter_begin()
60 util_blitter_save_stencil_ref(r300->blitter, &(r300->stencil_ref)); in r300_blitter_begin()
61 util_blitter_save_rasterizer(r300->blitter, r300->rs_state.state); in r300_blitter_begin()
62 util_blitter_save_fragment_shader(r300->blitter, r300->fs.state); in r300_blitter_begin()
63 util_blitter_save_vertex_shader(r300->blitter, r300->vs_state.state); in r300_blitter_begin()
64 util_blitter_save_viewport(r300->blitter, &r300->viewport); in r300_blitter_begin()
65 util_blitter_save_vertex_buffers(r300->blitter, r300->nr_vertex_buffers, in r300_blitter_begin()
67 util_blitter_save_vertex_elements(r300->blitter, r300->velems); in r300_blitter_begin()
70 util_blitter_save_framebuffer(r300->blitter, r300->fb_state.state); in r300_blitter_begin()
[all …]
Dr300_context.c78 if (r300->blitter) in r300_destroy_context()
79 util_blitter_destroy(r300->blitter); in r300_destroy_context()
411 r300->blitter = util_blitter_create(&r300->context);
412 if (r300->blitter == NULL)
414 r300->blitter->draw_rectangle = r300_blitter_draw_rectangle;
/external/mesa3d/src/gallium/drivers/r600/
Dr600_blit.c55 util_blitter_save_vertex_buffers(rctx->blitter, in r600_blitter_begin()
58 util_blitter_save_vertex_elements(rctx->blitter, rctx->vertex_elements); in r600_blitter_begin()
59 util_blitter_save_vertex_shader(rctx->blitter, rctx->vs_shader); in r600_blitter_begin()
60 util_blitter_save_so_targets(rctx->blitter, rctx->num_so_targets, in r600_blitter_begin()
62 util_blitter_save_rasterizer(rctx->blitter, rctx->states[R600_PIPE_STATE_RASTERIZER]); in r600_blitter_begin()
66 util_blitter_save_viewport(rctx->blitter, &rctx->viewport); in r600_blitter_begin()
68 util_blitter_save_fragment_shader(rctx->blitter, rctx->ps_shader); in r600_blitter_begin()
69 util_blitter_save_blend(rctx->blitter, rctx->states[R600_PIPE_STATE_BLEND]); in r600_blitter_begin()
70 util_blitter_save_depth_stencil_alpha(rctx->blitter, rctx->states[R600_PIPE_STATE_DSA]); in r600_blitter_begin()
72 util_blitter_save_stencil_ref(rctx->blitter, &rctx->stencil_ref); in r600_blitter_begin()
[all …]
/external/skia/tests/
DFillPathTest.cpp30 FakeBlitter blitter; in DEF_TEST() local
42 SkScan::FillPath(path, clip, &blitter); in DEF_TEST()
44 REPORTER_ASSERT(reporter, blitter.m_blitCount == expected_lines); in DEF_TEST()
/external/skia/src/gpu/
DGrSWMaskHelper.cpp144 SkBlitter* blitter = nullptr; in draw() local
147 blitter = SkTextureCompressor::CreateBlitterForFormat( in draw()
154 fDraw.drawPathCoverage(path, paint, blitter); in draw()
158 fDraw.drawPath(path, paint, blitter); in draw()

12