Home
last modified time | relevance | path

Searched refs:tile (Results 1 – 25 of 181) sorted by relevance

12345678

/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dnv20.c31 u32 flags, struct nvkm_fb_tile *tile) in nv20_fb_tile_init() argument
33 tile->addr = 0x00000001 | addr; in nv20_fb_tile_init()
34 tile->limit = max(1u, addr + size) - 1; in nv20_fb_tile_init()
35 tile->pitch = pitch; in nv20_fb_tile_init()
37 fb->func->tile.comp(fb, i, size, flags, tile); in nv20_fb_tile_init()
38 tile->addr |= 2; in nv20_fb_tile_init()
44 struct nvkm_fb_tile *tile) in nv20_fb_tile_comp() argument
48 if (!nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { in nv20_fb_tile_comp()
49 if (!(flags & 2)) tile->zcomp = 0x00000000; /* Z16 */ in nv20_fb_tile_comp()
50 else tile->zcomp = 0x04000000; /* Z24S8 */ in nv20_fb_tile_comp()
[all …]
H A Dnv30.c31 u32 flags, struct nvkm_fb_tile *tile) in nv30_fb_tile_init() argument
35 tile->addr = (0 << 4); in nv30_fb_tile_init()
37 if (fb->func->tile.comp) /* z compression */ in nv30_fb_tile_init()
38 fb->func->tile.comp(fb, i, size, flags, tile); in nv30_fb_tile_init()
39 tile->addr = (1 << 4); in nv30_fb_tile_init()
42 tile->addr |= 0x00000001; /* enable */ in nv30_fb_tile_init()
43 tile->addr |= addr; in nv30_fb_tile_init()
44 tile->limit = max(1u, addr + size) - 1; in nv30_fb_tile_init()
45 tile->pitch = pitch; in nv30_fb_tile_init()
50 struct nvkm_fb_tile *tile) in nv30_fb_tile_comp() argument
[all …]
H A Dnv10.c31 u32 flags, struct nvkm_fb_tile *tile) in nv10_fb_tile_init() argument
33 tile->addr = 0x80000000 | addr; in nv10_fb_tile_init()
34 tile->limit = max(1u, addr + size) - 1; in nv10_fb_tile_init()
35 tile->pitch = pitch; in nv10_fb_tile_init()
39 nv10_fb_tile_fini(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) in nv10_fb_tile_fini() argument
41 tile->addr = 0; in nv10_fb_tile_fini()
42 tile->limit = 0; in nv10_fb_tile_fini()
43 tile->pitch = 0; in nv10_fb_tile_fini()
44 tile->zcomp = 0; in nv10_fb_tile_fini()
48 nv10_fb_tile_prog(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) in nv10_fb_tile_prog() argument
[all …]
H A Dnv35.c31 struct nvkm_fb_tile *tile) in nv35_fb_tile_comp() argument
35 if (!nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { in nv35_fb_tile_comp()
36 if (flags & 2) tile->zcomp |= 0x04000000; /* Z16 */ in nv35_fb_tile_comp()
37 else tile->zcomp |= 0x08000000; /* Z24S8 */ in nv35_fb_tile_comp()
38 tile->zcomp |= ((tile->tag->offset ) >> 6); in nv35_fb_tile_comp()
39 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 6) << 13; in nv35_fb_tile_comp()
41 tile->zcomp |= 0x40000000; in nv35_fb_tile_comp()
50 .tile.regions = 8,
51 .tile.init = nv30_fb_tile_init,
52 .tile.comp = nv35_fb_tile_comp,
[all …]
H A Dnv36.c31 struct nvkm_fb_tile *tile) in nv36_fb_tile_comp() argument
35 if (!nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { in nv36_fb_tile_comp()
36 if (flags & 2) tile->zcomp |= 0x10000000; /* Z16 */ in nv36_fb_tile_comp()
37 else tile->zcomp |= 0x20000000; /* Z24S8 */ in nv36_fb_tile_comp()
38 tile->zcomp |= ((tile->tag->offset ) >> 6); in nv36_fb_tile_comp()
39 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 6) << 14; in nv36_fb_tile_comp()
41 tile->zcomp |= 0x80000000; in nv36_fb_tile_comp()
50 .tile.regions = 8,
51 .tile.init = nv30_fb_tile_init,
52 .tile.comp = nv36_fb_tile_comp,
[all …]
H A Dnv40.c31 struct nvkm_fb_tile *tile) in nv40_fb_tile_comp() argument
36 !nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { in nv40_fb_tile_comp()
37 tile->zcomp = 0x28000000; /* Z24S8_SPLIT_GRAD */ in nv40_fb_tile_comp()
38 tile->zcomp |= ((tile->tag->offset ) >> 8); in nv40_fb_tile_comp()
39 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 8) << 13; in nv40_fb_tile_comp()
41 tile->zcomp |= 0x40000000; in nv40_fb_tile_comp()
56 .tile.regions = 8,
57 .tile.init = nv30_fb_tile_init,
58 .tile.comp = nv40_fb_tile_comp,
59 .tile.fini = nv20_fb_tile_fini,
[all …]
H A Dnv44.c31 u32 flags, struct nvkm_fb_tile *tile) in nv44_fb_tile_init() argument
33 tile->addr = 0x00000001; /* mode = vram */ in nv44_fb_tile_init()
34 tile->addr |= addr; in nv44_fb_tile_init()
35 tile->limit = max(1u, addr + size) - 1; in nv44_fb_tile_init()
36 tile->pitch = pitch; in nv44_fb_tile_init()
40 nv44_fb_tile_prog(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) in nv44_fb_tile_prog() argument
43 nvkm_wr32(device, 0x100604 + (i * 0x10), tile->limit); in nv44_fb_tile_prog()
44 nvkm_wr32(device, 0x100608 + (i * 0x10), tile->pitch); in nv44_fb_tile_prog()
45 nvkm_wr32(device, 0x100600 + (i * 0x10), tile->addr); in nv44_fb_tile_prog()
60 .tile.regions = 12,
[all …]
H A Dnv25.c31 struct nvkm_fb_tile *tile) in nv25_fb_tile_comp() argument
35 if (!nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { in nv25_fb_tile_comp()
36 if (!(flags & 2)) tile->zcomp = 0x00100000; /* Z16 */ in nv25_fb_tile_comp()
37 else tile->zcomp = 0x00200000; /* Z24S8 */ in nv25_fb_tile_comp()
38 tile->zcomp |= tile->tag->offset; in nv25_fb_tile_comp()
40 tile->zcomp |= 0x01000000; in nv25_fb_tile_comp()
48 .tile.regions = 8,
49 .tile.init = nv20_fb_tile_init,
50 .tile.comp = nv25_fb_tile_comp,
51 .tile.fini = nv20_fb_tile_fini,
[all …]
H A Dnv46.c31 u32 flags, struct nvkm_fb_tile *tile) in nv46_fb_tile_init() argument
34 if (!(flags & 4)) tile->addr = (0 << 3); in nv46_fb_tile_init()
35 else tile->addr = (1 << 3); in nv46_fb_tile_init()
37 tile->addr |= 0x00000001; /* mode = vram */ in nv46_fb_tile_init()
38 tile->addr |= addr; in nv46_fb_tile_init()
39 tile->limit = max(1u, addr + size) - 1; in nv46_fb_tile_init()
40 tile->pitch = pitch; in nv46_fb_tile_init()
46 .tile.regions = 15,
47 .tile.init = nv46_fb_tile_init,
48 .tile.fini = nv20_fb_tile_fini,
[all …]
H A Dnv41.c30 nv41_fb_tile_prog(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) in nv41_fb_tile_prog() argument
33 nvkm_wr32(device, 0x100604 + (i * 0x10), tile->limit); in nv41_fb_tile_prog()
34 nvkm_wr32(device, 0x100608 + (i * 0x10), tile->pitch); in nv41_fb_tile_prog()
35 nvkm_wr32(device, 0x100600 + (i * 0x10), tile->addr); in nv41_fb_tile_prog()
37 nvkm_wr32(device, 0x100700 + (i * 0x04), tile->zcomp); in nv41_fb_tile_prog()
50 .tile.regions = 12,
51 .tile.init = nv30_fb_tile_init,
52 .tile.comp = nv40_fb_tile_comp,
53 .tile.fini = nv20_fb_tile_fini,
54 .tile.prog = nv41_fb_tile_prog,
H A Dbase.c35 nvkm_fb_tile_fini(struct nvkm_fb *fb, int region, struct nvkm_fb_tile *tile) in nvkm_fb_tile_fini() argument
37 fb->func->tile.fini(fb, region, tile); in nvkm_fb_tile_fini()
42 u32 pitch, u32 flags, struct nvkm_fb_tile *tile) in nvkm_fb_tile_init() argument
44 fb->func->tile.init(fb, region, addr, size, pitch, flags, tile); in nvkm_fb_tile_init()
48 nvkm_fb_tile_prog(struct nvkm_fb *fb, int region, struct nvkm_fb_tile *tile) in nvkm_fb_tile_prog() argument
51 if (fb->func->tile.prog) { in nvkm_fb_tile_prog()
52 fb->func->tile.prog(fb, region, tile); in nvkm_fb_tile_prog()
168 for (i = 0; i < fb->tile.regions; i++) in nvkm_fb_init()
169 fb->func->tile.prog(fb, i, &fb->tile.region[i]); in nvkm_fb_init()
205 for (i = 0; i < fb->tile.regions; i++) in nvkm_fb_dtor()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/algorithm/
H A Dupdate_renderables.hpp35 auto tile = getTile(idealDataTileID); in updateRenderables() local
36 if (!tile) { in updateRenderables()
37 tile = createTile(idealDataTileID); in updateRenderables()
40 if(tile == nullptr) { in updateRenderables()
46 if (tile->isRenderable()) { in updateRenderables()
47 retainTile(*tile, TileNecessity::Required); in updateRenderables()
48 renderTile(idealRenderTileID, *tile); in updateRenderables()
51 bool parentHasTriedOptional = tile->hasTriedCache(); in updateRenderables()
52 bool parentIsLoaded = tile->isLoaded(); in updateRenderables()
55 retainTile(*tile, TileNecessity::Required); in updateRenderables()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_mman.c19 struct tile { struct
33 static u64 tiled_offset(const struct tile *tile, u64 v) in tiled_offset() argument
37 if (tile->tiling == I915_TILING_NONE) in tiled_offset()
40 y = div64_u64_rem(v, tile->stride, &x); in tiled_offset()
41 v = div64_u64_rem(y, tile->height, &y) * tile->stride * tile->height; in tiled_offset()
43 if (tile->tiling == I915_TILING_X) { in tiled_offset()
44 v += y * tile->width; in tiled_offset()
45 v += div64_u64_rem(x, tile->width, &x) << tile->size; in tiled_offset()
47 } else if (tile->width == 128) { in tiled_offset()
63 switch (tile->swizzle) { in tiled_offset()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/maps/
H A Dqgeotilerequestmanager.cpp57 void tileError(const QGeoTileSpec &tile, const QString &errorString);
95 void QGeoTileRequestManager::tileError(const QGeoTileSpec &tile, const QString &errorString) in tileError() argument
97 d_ptr->tileError(tile, errorString); in tileError()
127 QGeoTileSpec tile = *i; in requestTiles() local
128 QSharedPointer<QGeoTileTexture> tex = m_engine->getTileTexture(tile); in requestTiles()
131 cachedTex.insert(tile, tex); in requestTiles()
132 cached.insert(tile); in requestTiles()
135 QGeoTileSpec spec = tile; in requestTiles()
136 … const int endRange = qMax(0, tile.zoom() - 4); // Using up to 4 zoom levels up. 4 is arbitrary. in requestTiles()
137 for (int z = tile.zoom() - 1; z >= endRange; z--) { in requestTiles()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dnv44.c31 nv44_gr_tile(struct nvkm_gr *base, int i, struct nvkm_fb_tile *tile) in nv44_gr_tile() argument
44 nvkm_wr32(device, NV20_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile()
45 nvkm_wr32(device, NV20_PGRAPH_TLIMIT(i), tile->limit); in nv44_gr_tile()
46 nvkm_wr32(device, NV20_PGRAPH_TILE(i), tile->addr); in nv44_gr_tile()
53 nvkm_wr32(device, NV47_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile()
54 nvkm_wr32(device, NV47_PGRAPH_TLIMIT(i), tile->limit); in nv44_gr_tile()
55 nvkm_wr32(device, NV47_PGRAPH_TILE(i), tile->addr); in nv44_gr_tile()
56 nvkm_wr32(device, NV40_PGRAPH_TSIZE1(i), tile->pitch); in nv44_gr_tile()
57 nvkm_wr32(device, NV40_PGRAPH_TLIMIT1(i), tile->limit); in nv44_gr_tile()
58 nvkm_wr32(device, NV40_PGRAPH_TILE1(i), tile->addr); in nv44_gr_tile()
[all …]
H A Dnv40.c173 nv40_gr_tile(struct nvkm_gr *base, int i, struct nvkm_fb_tile *tile) in nv40_gr_tile() argument
189 nvkm_wr32(device, NV20_PGRAPH_TSIZE(i), tile->pitch); in nv40_gr_tile()
190 nvkm_wr32(device, NV20_PGRAPH_TLIMIT(i), tile->limit); in nv40_gr_tile()
191 nvkm_wr32(device, NV20_PGRAPH_TILE(i), tile->addr); in nv40_gr_tile()
192 nvkm_wr32(device, NV40_PGRAPH_TSIZE1(i), tile->pitch); in nv40_gr_tile()
193 nvkm_wr32(device, NV40_PGRAPH_TLIMIT1(i), tile->limit); in nv40_gr_tile()
194 nvkm_wr32(device, NV40_PGRAPH_TILE1(i), tile->addr); in nv40_gr_tile()
198 nvkm_wr32(device, NV20_PGRAPH_ZCOMP(i), tile->zcomp); in nv40_gr_tile()
199 nvkm_wr32(device, NV40_PGRAPH_ZCOMP1(i), tile->zcomp); in nv40_gr_tile()
204 nvkm_wr32(device, NV41_PGRAPH_ZCOMP0(i), tile->zcomp); in nv40_gr_tile()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/renderer/
H A Drender_tile.cpp56 tile.setMask(std::move(mask)); in setMask()
60 tile.upload(parameters.context); in startRender()
80 if (!tile.debugBucket || tile.debugBucket->renderable != tile.isRenderable() || in finishRender()
81 tile.debugBucket->complete != tile.isComplete() || in finishRender()
82 !(tile.debugBucket->modified == tile.modified) || in finishRender()
83 !(tile.debugBucket->expires == tile.expires) || in finishRender()
84 tile.debugBucket->debugMode != parameters.debugOptions) { in finishRender()
85 tile.debugBucket = std::make_unique<DebugBucket>( in finishRender()
86 tile.id, tile.isRenderable(), tile.isComplete(), tile.modified, in finishRender()
87 tile.expires, parameters.debugOptions, parameters.context); in finishRender()
[all …]
H A Dtile_pyramid.cpp44 for (auto& tile : renderTiles) { in startRender() local
45 tile.startRender(parameters); in startRender()
50 for (auto& tile : renderTiles) { in finishRender() local
51 tile.finishRender(parameters); in finishRender()
135 auto retainTileFn = [&](Tile& tile, TileNecessity necessity) -> void { in update() argument
136 if (retain.emplace(tile.id).second) { in update()
137 tile.setNecessity(necessity); in update()
141 tile.setLayers(layers); in update()
160 std::unique_ptr<Tile> tile = cache.pop(tileID); in update() local
161 if (!tile) { in update()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/ipu-v3/
H A Dipu-image-convert.c123 struct ipu_image_tile tile[MAX_TILES]; member
678 in_tile = &in->tile[tile_idx]; in fill_tile_column()
679 out_tile = &out->tile[ctx->out_tile_map[tile_idx]]; in fill_tile_column()
710 in_tile = &in->tile[tile_idx]; in fill_tile_row()
711 out_tile = &out->tile[ctx->out_tile_map[tile_idx]]; in fill_tile_row()
871 struct ipu_image_tile *tile; in calc_tile_dimensions() local
876 tile = &image->tile[ctx->out_tile_map[i]]; in calc_tile_dimensions()
878 tile = &image->tile[i]; in calc_tile_dimensions()
880 tile->size = ((tile->height * image->fmt->bpp) >> 3) * in calc_tile_dimensions()
881 tile->width; in calc_tile_dimensions()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/renderer/sources/
H A Drender_raster_dem_source.cpp65 void RenderRasterDEMSource::onTileChanged(Tile& tile){ in onTileChanged() argument
66 RasterDEMTile& demtile = static_cast<RasterDEMTile&>(tile); in onTileChanged()
79 if (tile.isRenderable() && demtile.neighboringTiles != DEMTileNeighbors::Complete) { in onTileChanged()
80 const CanonicalTileID canonical = tile.id.canonical; in onTileChanged()
83 const int pxw = canonical.x == 0 ? tile.id.wrap - 1 : tile.id.wrap; in onTileChanged()
85 const int nxw = (canonical.x + 1 == dim) ? tile.id.wrap + 1 : tile.id.wrap; in onTileChanged()
89 return OverscaledTileID(tile.id.overscaledZ, pxw, canonical.z, px, canonical.y); in onTileChanged()
91 return OverscaledTileID(tile.id.overscaledZ, nxw, canonical.z, nx, canonical.y); in onTileChanged()
93 return OverscaledTileID(tile.id.overscaledZ, pxw, canonical.z, px, canonical.y - 1); in onTileChanged()
95 …return OverscaledTileID(tile.id.overscaledZ, tile.id.wrap, canonical.z, canonical.x, canonical.y -… in onTileChanged()
[all …]
/OK3568_Linux_fs/kernel/drivers/video/rockchip/rga/
H A DRGA_API.c27 matrix_cal(const struct rga_req *msg, TILE_INFO *tile) in matrix_cal() argument
55 tile->matrix[0] = cosa*x_time; in matrix_cal()
56 tile->matrix[1] = -sina*y_time; in matrix_cal()
57 tile->matrix[2] = sina*x_time; in matrix_cal()
58 tile->matrix[3] = cosa*y_time; in matrix_cal()
61 tile->matrix[0] = -(x_time<<16); in matrix_cal()
62 tile->matrix[1] = 0; in matrix_cal()
63 tile->matrix[2] = 0; in matrix_cal()
64 tile->matrix[3] = (y_time<<16); in matrix_cal()
67 tile->matrix[0] = (x_time<<16); in matrix_cal()
[all …]
H A Drga_reg_info.c97 dst_ctrl_cal(const struct rga_req *msg, TILE_INFO *tile) in dst_ctrl_cal() argument
264 tile->dst_ctrl.w = (xmax - xmin); in dst_ctrl_cal()
265 tile->dst_ctrl.h = (ymax - ymin); in dst_ctrl_cal()
266 tile->dst_ctrl.x_off = xmin; in dst_ctrl_cal()
267 tile->dst_ctrl.y_off = ymin; in dst_ctrl_cal()
271 tile->tile_x_num = (xmax - xmin + 1 + 7)>>3; in dst_ctrl_cal()
272 tile->tile_y_num = (ymax - ymin + 1 + 7)>>3; in dst_ctrl_cal()
274 tile->dst_x_tmp = xmin - msg->dst.x_offset; in dst_ctrl_cal()
275 tile->dst_y_tmp = ymin - msg->dst.y_offset; in dst_ctrl_cal()
291 src_tile_info_cal(const struct rga_req *msg, TILE_INFO *tile) in src_tile_info_cal() argument
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/platform/default/mbgl/storage/
H A Doffline_database.cpp368 optional<std::pair<Response, uint64_t>> OfflineDatabase::getTile(const Resource::TileData& tile) { in getTile() argument
382 accessedQuery.bind(2, tile.urlTemplate); in getTile()
383 accessedQuery.bind(3, tile.pixelRatio); in getTile()
384 accessedQuery.bind(4, tile.x); in getTile()
385 accessedQuery.bind(5, tile.y); in getTile()
386 accessedQuery.bind(6, tile.z); in getTile()
402 query.bind(1, tile.urlTemplate); in getTile()
403 query.bind(2, tile.pixelRatio); in getTile()
404 query.bind(3, tile.x); in getTile()
405 query.bind(4, tile.y); in getTile()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/programs/
H A Dline_program.cpp17 const RenderTile& tile, in makeValues() argument
24 tile.translatedMatrix(properties.get<LineTranslate>(), in makeValues()
28 uniforms::u_ratio::Value{ 1.0f / tile.id.pixelsToTileUnits(1.0, state.getZoom()) }, in makeValues()
36 const RenderTile& tile, in uniformValues() argument
41 tile, in uniformValues()
50 const RenderTile& tile, in uniformValues() argument
60 1.0f / tile.id.pixelsToTileUnits(widthA, state.getIntegerZoom()), in uniformValues()
65 1.0f / tile.id.pixelsToTileUnits(widthB, state.getIntegerZoom()), in uniformValues()
71 tile, in uniformValues()
86 const RenderTile& tile, in uniformValues() argument
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/renderer/layers/
H A Drender_symbol_layer.cpp77 for (const RenderTile& tile : renderTiles) { in render() local
78 auto bucket_ = tile.tile.getBucket<SymbolBucket>(*baseImpl); in render()
129 assert(dynamic_cast<GeometryTile*>(&tile.tile)); in render()
130 GeometryTile& geometryTile = static_cast<GeometryTile&>(tile.tile); in render()
142 tile.matrix, in render()
144 tile, in render()
163 …formValues(false, values, texsize, parameters.pixelsToGLUnits, alongLine, tile, parameters.state, … in render()
173 …formValues(false, values, texsize, parameters.pixelsToGLUnits, alongLine, tile, parameters.state, … in render()
182 …formValues(false, values, texsize, parameters.pixelsToGLUnits, alongLine, tile, parameters.state, … in render()
203 tile.matrix, in render()
[all …]

12345678