Home
last modified time | relevance | path

Searched refs:batch (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_batchbuffer.c43 struct cached_batch_item *item = intel->batch.cached_items; in clear_cache()
51 intel->batch.cached_items = NULL; in clear_cache()
64 intel->batch.workaround_bo = drm_intel_bo_alloc(intel->bufmgr, in intel_batchbuffer_init()
73 if (intel->batch.last_bo != NULL) { in intel_batchbuffer_reset()
74 drm_intel_bo_unreference(intel->batch.last_bo); in intel_batchbuffer_reset()
75 intel->batch.last_bo = NULL; in intel_batchbuffer_reset()
77 intel->batch.last_bo = intel->batch.bo; in intel_batchbuffer_reset()
81 intel->batch.bo = drm_intel_bo_alloc(intel->bufmgr, "batchbuffer", in intel_batchbuffer_reset()
84 intel->batch.reserved_space = BATCH_RESERVED; in intel_batchbuffer_reset()
85 intel->batch.state_batch_offset = intel->batch.bo->size; in intel_batchbuffer_reset()
[all …]
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_batchbuffer.c43 struct cached_batch_item *item = intel->batch.cached_items; in clear_cache()
51 intel->batch.cached_items = NULL; in clear_cache()
64 intel->batch.workaround_bo = drm_intel_bo_alloc(intel->bufmgr, in intel_batchbuffer_init()
73 if (intel->batch.last_bo != NULL) { in intel_batchbuffer_reset()
74 drm_intel_bo_unreference(intel->batch.last_bo); in intel_batchbuffer_reset()
75 intel->batch.last_bo = NULL; in intel_batchbuffer_reset()
77 intel->batch.last_bo = intel->batch.bo; in intel_batchbuffer_reset()
81 intel->batch.bo = drm_intel_bo_alloc(intel->bufmgr, "batchbuffer", in intel_batchbuffer_reset()
84 intel->batch.reserved_space = BATCH_RESERVED; in intel_batchbuffer_reset()
85 intel->batch.state_batch_offset = intel->batch.bo->size; in intel_batchbuffer_reset()
[all …]
Dintel_batchbuffer.h83 return (intel->batch.state_batch_offset - intel->batch.reserved_space) in intel_batchbuffer_space()
84 - intel->batch.used*4; in intel_batchbuffer_space()
94 intel->batch.map[intel->batch.used++] = dword; in intel_batchbuffer_emit_dword()
109 intel->batch.is_blit != is_blit && intel->batch.used) { in intel_batchbuffer_require_space()
113 intel->batch.is_blit = is_blit; in intel_batchbuffer_require_space()
116 assert(sz < sizeof(intel->batch.map) - BATCH_RESERVED); in intel_batchbuffer_require_space()
127 intel->batch.emit = intel->batch.used; in intel_batchbuffer_begin()
129 intel->batch.total = n; in intel_batchbuffer_begin()
137 struct intel_batchbuffer *batch = &intel->batch; in intel_batchbuffer_advance() local
138 unsigned int _n = batch->used - batch->emit; in intel_batchbuffer_advance()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_batchbuffer.c43 struct cached_batch_item *item = intel->batch.cached_items; in clear_cache()
51 intel->batch.cached_items = NULL; in clear_cache()
64 intel->batch.workaround_bo = drm_intel_bo_alloc(intel->bufmgr, in intel_batchbuffer_init()
73 if (intel->batch.last_bo != NULL) { in intel_batchbuffer_reset()
74 drm_intel_bo_unreference(intel->batch.last_bo); in intel_batchbuffer_reset()
75 intel->batch.last_bo = NULL; in intel_batchbuffer_reset()
77 intel->batch.last_bo = intel->batch.bo; in intel_batchbuffer_reset()
81 intel->batch.bo = drm_intel_bo_alloc(intel->bufmgr, "batchbuffer", in intel_batchbuffer_reset()
84 intel->batch.reserved_space = BATCH_RESERVED; in intel_batchbuffer_reset()
85 intel->batch.state_batch_offset = intel->batch.bo->size; in intel_batchbuffer_reset()
[all …]
Dbrw_state_batch.c43 struct intel_batchbuffer *batch = &brw->intel.batch; in brw_track_state_batch() local
50 batch->bo->size / 32); in brw_track_state_batch()
90 4*intel->batch.used); in brw_annotate_aub()
101 drm_intel_bufmgr_gem_set_aub_annotations(intel->batch.bo, annotations, in brw_annotate_aub()
126 struct intel_batchbuffer *batch = &brw->intel.batch; in brw_state_batch() local
129 assert(size < batch->bo->size); in brw_state_batch()
130 offset = ROUND_DOWN_TO(batch->state_batch_offset - size, alignment); in brw_state_batch()
136 if (batch->state_batch_offset < size || in brw_state_batch()
137 offset < 4*batch->used + batch->reserved_space) { in brw_state_batch()
139 offset = ROUND_DOWN_TO(batch->state_batch_offset - size, alignment); in brw_state_batch()
[all …]
/external/mesa3d/src/gallium/winsys/i915/drm/
Di915_drm_batchbuffer.c30 i915_drm_batchbuffer(struct i915_winsys_batchbuffer *batch) in i915_drm_batchbuffer() argument
32 return (struct i915_drm_batchbuffer *)batch; in i915_drm_batchbuffer()
36 i915_drm_batchbuffer_reset(struct i915_drm_batchbuffer *batch) in i915_drm_batchbuffer_reset() argument
38 struct i915_drm_winsys *idws = i915_drm_winsys(batch->base.iws); in i915_drm_batchbuffer_reset()
40 if (batch->bo) in i915_drm_batchbuffer_reset()
41 drm_intel_bo_unreference(batch->bo); in i915_drm_batchbuffer_reset()
42 batch->bo = drm_intel_bo_alloc(idws->gem_manager, in i915_drm_batchbuffer_reset()
44 batch->actual_size, in i915_drm_batchbuffer_reset()
47 memset(batch->base.map, 0, batch->actual_size); in i915_drm_batchbuffer_reset()
48 batch->base.ptr = batch->base.map; in i915_drm_batchbuffer_reset()
[all …]
/external/mesa3d/src/gallium/winsys/i915/sw/
Di915_sw_batchbuffer.c25 i915_sw_batchbuffer(struct i915_winsys_batchbuffer *batch) in i915_sw_batchbuffer() argument
27 return (struct i915_sw_batchbuffer *)batch; in i915_sw_batchbuffer()
31 i915_sw_batchbuffer_reset(struct i915_sw_batchbuffer *batch) in i915_sw_batchbuffer_reset() argument
33 memset(batch->base.map, 0, batch->actual_size); in i915_sw_batchbuffer_reset()
34 batch->base.ptr = batch->base.map; in i915_sw_batchbuffer_reset()
35 batch->base.size = batch->actual_size - BATCH_RESERVED; in i915_sw_batchbuffer_reset()
36 batch->base.relocs = 0; in i915_sw_batchbuffer_reset()
43 struct i915_sw_batchbuffer *batch = CALLOC_STRUCT(i915_sw_batchbuffer); in i915_sw_batchbuffer_create() local
45 batch->actual_size = isws->max_batch_size; in i915_sw_batchbuffer_create()
47 batch->base.map = MALLOC(batch->actual_size); in i915_sw_batchbuffer_create()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_batchbuffer.h37 i915_winsys_batchbuffer_space(struct i915_winsys_batchbuffer *batch) in i915_winsys_batchbuffer_space() argument
39 return batch->size - (batch->ptr - batch->map); in i915_winsys_batchbuffer_space()
43 i915_winsys_batchbuffer_check(struct i915_winsys_batchbuffer *batch, in i915_winsys_batchbuffer_check() argument
46 return dwords * 4 <= i915_winsys_batchbuffer_space(batch); in i915_winsys_batchbuffer_check()
50 i915_winsys_batchbuffer_dword_unchecked(struct i915_winsys_batchbuffer *batch, in i915_winsys_batchbuffer_dword_unchecked() argument
53 *(unsigned *)batch->ptr = dword; in i915_winsys_batchbuffer_dword_unchecked()
54 batch->ptr += 4; in i915_winsys_batchbuffer_dword_unchecked()
58 i915_winsys_batchbuffer_float(struct i915_winsys_batchbuffer *batch, in i915_winsys_batchbuffer_float() argument
63 assert (i915_winsys_batchbuffer_space(batch) >= 4); in i915_winsys_batchbuffer_float()
64 i915_winsys_batchbuffer_dword_unchecked(batch, uif.ui); in i915_winsys_batchbuffer_float()
[all …]
Di915_flush.c49 if (!fence && i915->batch && (i915->batch->map == i915->batch->ptr)) { in i915_flush_pipe()
71 struct i915_winsys_batchbuffer *batch = i915->batch; in i915_flush() local
73 batch->iws->batchbuffer_flush(batch, fence); in i915_flush()
/external/libdrm/intel/
DMakefile.am52 tests/gen4-3d.batch \
53 tests/gm45-3d.batch \
54 tests/gen5-3d.batch \
55 tests/gen6-3d.batch \
56 tests/gen7-2d-copy.batch \
57 tests/gen7-3d.batch
60 $(BATCHES:.batch=.batch.sh) \
65 $(BATCHES:.batch=.batch.sh) \
66 $(BATCHES:.batch=.batch-ref.txt) \
67 $(BATCHES:.batch=.batch-ref.txt) \
[all …]
/external/skia/src/gpu/
DGrDrawTarget.cpp224 void GrDrawTarget::drawBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawBatch* batch) { in drawBatch() argument
228 if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &batch->bounds(), &clip)) { in drawBatch()
238 if (!this->installPipelineInDrawBatch(&pipelineBuilder, &clip.scissorState(), batch)) { in drawBatch()
244 batch->pipeline()->addDependenciesTo(fRenderTarget); in drawBatch()
247 this->recordBatch(batch); in drawBatch()
312 GrBatch* batch = GrStencilPathBatch::Create(viewMatrix, in stencilPath() local
317 this->recordBatch(batch); in stencilPath()
318 batch->unref(); in stencilPath()
322 GrDrawPathBatchBase* batch) { in drawPathBatch() argument
331 if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &batch->bounds(), &clip)) { in drawPathBatch()
[all …]
DGrDrawContext.cpp231 SkAutoTUnref<GrDrawBatch> batch( in drawPaint() local
234 this->getDrawTarget()->drawBatch(pipelineBuilder, batch); in drawPaint()
305 SkAutoTUnref<GrDrawBatch> batch; in drawRect() local
310 batch.reset(GrRectBatchFactory::CreateAAStroke(color, viewMatrix, rect, in drawRect()
318 batch.reset(GrRectBatchFactory::CreateAAFill(color, viewMatrix, rect, in drawRect()
322 if (!batch) { in drawRect()
333 batch.reset(GrRectBatchFactory::CreateNonAAStroke(color, viewMatrix, rect, width, in drawRect()
343 batch.reset(GrRectBatchFactory::CreateNonAAFill(color, viewMatrix, rect, nullptr, nullptr)); in drawRect()
345 this->getDrawTarget()->drawBatch(pipelineBuilder, batch); in drawRect()
361 SkAutoTUnref<GrDrawBatch> batch; in fillRectToRect() local
[all …]
/external/skia/src/gpu/batches/
DGrAtlasTextBatch.h36 GrAtlasTextBatch* batch = new GrAtlasTextBatch; in CreateBitmap() local
38 batch->fFontCache = fontCache; in CreateBitmap()
41 batch->fMaskType = kGrayscaleCoverageMask_MaskType; in CreateBitmap()
44 batch->fMaskType = kLCDCoverageMask_MaskType; in CreateBitmap()
47 batch->fMaskType = kColorBitmapMask_MaskType; in CreateBitmap()
50 batch->fBatch.fNumGlyphs = glyphCount; in CreateBitmap()
51 batch->fGeoCount = 1; in CreateBitmap()
52 batch->fFilteredColor = 0; in CreateBitmap()
53 batch->fFontCache = fontCache; in CreateBitmap()
54 batch->fUseBGR = false; in CreateBitmap()
[all …]
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DParallaxTest.java58 SpriteBatch batch; field in ParallaxTest
72 batch = new SpriteBatch(); in create()
79 batch.dispose(); in dispose()
111 batch.setProjectionMatrix(camera.calculateParallaxMatrix(0, 0)); in render()
112 batch.disableBlending(); in render()
113 batch.begin(); in render()
114batch.draw(layers[0], -(int)(layers[0].getRegionWidth() / 2), -(int)(layers[0].getRegionHeight() /… in render()
115 batch.end(); in render()
116 batch.enableBlending(); in render()
120 batch.setProjectionMatrix(camera.calculateParallaxMatrix(0.5f, 1)); in render()
[all …]
DViewportTest2.java45 private SpriteBatch batch; field in ViewportTest2
59 batch = new SpriteBatch(); in create()
85 batch.setProjectionMatrix(camera.projection); in render()
86 batch.setTransformMatrix(camera.view); in render()
89 batch.begin(); in render()
91 batch.setColor(1, 1, 1, 1); in render()
92 batch.draw(texture, -4096, -4096, 4096, 4096, 8192, 8192, 1, 1, 0, 0, 0, 16, 16, false, false); in render()
94 batch.setColor(1, 0, 0, 1); in render()
95 batch.draw(texture, 150, 100, 16, 16, 32, 32, 1, 1, 45, 0, 0, 16, 16, false, false); in render()
97 font.draw(batch, viewport.getClass().getSimpleName(), 150, 100); in render()
[all …]
DRotationTest.java30 SpriteBatch batch; field in RotationTest
36 batch = new SpriteBatch(); in create()
37 batch.getTransformMatrix().setToTranslation(30.5f, 30.5f, 0); in create()
43 batch.begin(); in render()
44 batch.draw(texture, 0, 0); in render()
45 batch.draw(region, 128, 0, 64, 64, 128, 128, 1, 1, 90); in render()
46 batch.draw(region, 128, 128, 64, 64, 128, 128, 1, 1, 180); in render()
47 batch.draw(region, 0, 128, 64, 64, 128, 128, 1, 1, 270); in render()
48 batch.end(); in render()
54 batch.dispose(); in dispose()
DFilterPerformanceTest.java32 SpriteBatch batch; field in FilterPerformanceTest
58 batch = new SpriteBatch(); in create()
85 batch.dispose(); in dispose()
94 batch.setProjectionMatrix(sceneMatrix); in render()
95 batch.begin(); in render()
97 batch.end(); in render()
99 batch.setProjectionMatrix(textMatrix); in render()
100 batch.begin(); in render()
101 font.draw(batch, modeString + " fps:" + Gdx.graphics.getFramesPerSecond(), 26, 65); in render()
102 batch.end(); in render()
[all …]
DIntegerBitmapFontTest.java35 SpriteBatch batch; field in IntegerBitmapFontTest
44 batch = new SpriteBatch(); in create()
50 batch.dispose(); in dispose()
56 batch.begin(); in render()
59 singleLineCacheNonInteger.draw(batch); in render()
60 multiLineCacheNonInteger.draw(batch); in render()
64 singleLineCache.draw(batch); in render()
65 multiLineCache.draw(batch); in render()
67 batch.end(); in render()
84 font.draw(batch, text, 10.2f, 30.5f); in drawTexts()
[all …]
DStagePerformanceTest.java42 SpriteBatch batch; field in StagePerformanceTest
49 batch = new SpriteBatch(); in create()
90 batch.getProjectionMatrix().setToOrtho2D(0, 0, 24, 12); in render()
91 batch.getTransformMatrix().idt(); in render()
92 batch.disableBlending(); in render()
93 batch.begin(); in render()
96 sprites[i].draw(batch); in render()
98 batch.end(); in render()
101 batch.getProjectionMatrix().setToOrtho2D(0, 0, 480, 320); in render()
102 batch.enableBlending(); in render()
[all …]
DETC1Test.java37 SpriteBatch batch; field in ETC1Test
60 batch = new SpriteBatch(); in create()
70 batch.setProjectionMatrix(camera.combined); in render()
71 batch.begin(); in render()
72 batch.draw(img2, -100, 0); in render()
73 batch.draw(img1, 0, 0); in render()
74 batch.end(); in render()
76 batch.getProjectionMatrix().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); in render()
77 batch.begin(); in render()
78 font.draw(batch, "fps: " + Gdx.graphics.getFramesPerSecond(), 0, 30); in render()
[all …]
DBlitTest.java31 SpriteBatch batch; field in BlitTest
38 batch = new SpriteBatch(); in create()
45 batch.begin(); in render()
46 batch.draw(rgb888, 0, 0); in render()
47 batch.draw(rgba8888, 60, 0); in render()
48 batch.draw(psRgb888, 0, 60); in render()
49 batch.draw(psRgba8888, psRgb888.getWidth() + 20, 60); in render()
50 batch.end(); in render()
55 batch.dispose(); in dispose()
DYDownTest.java39 SpriteBatch batch; field in YDownTest
66 batch = new SpriteBatch(); in create()
98 batch.setProjectionMatrix(camera.combined); in render()
102 batch.begin(); in render()
105 batch.draw(region, 20, 100); in render()
107 font.draw(batch, "This is a test", 270, 100); in render()
110 batch.draw(atlas.findRegion("badlogicsmall"), 360, 100); in render()
113 sprite.draw(batch); in render()
115 font.draw(batch, Gdx.input.getX() + ", " + Gdx.input.getY(), 0, 0); in render()
116 batch.end(); in render()
[all …]
/external/jsoncpp/src/lib_json/
Djson_batchallocator.h44 for (BatchInfo* batch = batches_; batch;) { in ~BatchAllocator() local
45 BatchInfo* nextBatch = batch->next_; in ~BatchAllocator()
46 free(batch); in ~BatchAllocator()
47 batch = nextBatch; in ~BatchAllocator()
103 BatchInfo* batch = static_cast<BatchInfo*>(malloc(mallocSize)); in allocateBatch() local
104 batch->next_ = 0; in allocateBatch()
105 batch->used_ = batch->buffer_; in allocateBatch()
106 batch->end_ = batch->buffer_ + objectsPerPage; in allocateBatch()
107 return batch; in allocateBatch()
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dbatch_test.py10 from apitools.base.py import batch
90 batch_api_request = batch.BatchApiRequest(batch_url=desired_url,
140 batch_api_request = batch.BatchApiRequest(batch_url=desired_url)
188 batch_api_request = batch.BatchApiRequest(batch_url=desired_url)
250 batch_api_request = batch.BatchApiRequest(batch_url=desired_url)
263 batch_request = batch.BatchHttpRequest('https://www.example.com')
275 batch_request = batch.BatchHttpRequest('https://www.example.com')
286 batch_request = batch.BatchHttpRequest('https://www.example.com')
309 batch_request = batch.BatchHttpRequest('https://www.example.com')
322 batch_request = batch.BatchHttpRequest('https://www.example.com')
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/
DSpriteDrawable.java42 public void draw (Batch batch, float x, float y, float width, float height) { in draw() argument
44 float batchColor = batch.getPackedColor(); in draw()
45 sprite.setColor(batch.getColor().mul(spriteColor)); in draw()
50 sprite.draw(batch); in draw()
53 batch.setColor(batchColor); in draw()
56 …public void draw (Batch batch, float x, float y, float originX, float originY, float width, float … in draw() argument
60 float batchColor = batch.getPackedColor(); in draw()
61 sprite.setColor(batch.getColor().mul(spriteColor)); in draw()
67 sprite.draw(batch); in draw()
70 batch.setColor(batchColor); in draw()

12345678910>>...15