Home
last modified time | relevance | path

Searched refs:crtc (Results 1 – 25 of 71) sorted by relevance

123

/external/libdrm/tests/planetest/
Dmodeset.c13 static int set_crtc_mode(struct sp_dev *dev, struct sp_crtc *crtc, in set_crtc_mode() argument
36 ret = drmModeAtomicAddProperty(pset, crtc->crtc->crtc_id, in set_crtc_mode()
37 crtc->mode_pid, create_blob.blob_id) || in set_crtc_mode()
38 drmModeAtomicAddProperty(pset, crtc->crtc->crtc_id, in set_crtc_mode()
39 crtc->active_pid, 1) || in set_crtc_mode()
41 conn->crtc_id_pid, crtc->crtc->crtc_id); in set_crtc_mode()
58 memcpy(&crtc->crtc->mode, mode, sizeof(struct drm_mode_modeinfo)); in set_crtc_mode()
59 crtc->crtc->mode_valid = 1; in set_crtc_mode()
133 struct sp_plane *get_sp_plane(struct sp_dev *dev, struct sp_crtc *crtc) in get_sp_plane() argument
143 if (!(p->plane->possible_crtcs & (1 << crtc->pipe))) in get_sp_plane()
[all …]
Dplanetest.c43 int card = 0, crtc = 0; in main() local
47 parse_arguments(argc, argv, &card, &crtc); in main()
55 if (crtc >= dev->num_crtcs) { in main()
56 printf("Invalid crtc %d (num=%d)\n", crtc, dev->num_crtcs); in main()
65 test_crtc = &dev->crtcs[crtc]; in main()
94 test_crtc->crtc->mode.hdisplay - plane_w); in main()
95 incrementor(&y_inc, &y, 5, 0, test_crtc->crtc->mode.vdisplay - in main()
Datomictest.c55 int card = 0, crtc = 0; in main() local
59 parse_arguments(argc, argv, &card, &crtc); in main()
67 if (crtc >= dev->num_crtcs) { in main()
68 printf("Invalid crtc %d (num=%d)\n", crtc, dev->num_crtcs); in main()
77 test_crtc = &dev->crtcs[crtc]; in main()
114 test_crtc->crtc->mode.hdisplay - plane_w); in main()
115 incrementor(&y_inc, &y, 5, 0, test_crtc->crtc->mode.vdisplay - in main()
/external/libkmsxx/kms++util/src/
Dresourcemanager.cpp112 if (Crtc* crtc = conn->get_current_crtc()) { in reserve_crtc() local
113 m_reserved_crtcs.insert(crtc); in reserve_crtc()
114 return crtc; in reserve_crtc()
117 for (Crtc* crtc : conn->get_possible_crtcs()) { in reserve_crtc()
118 if (m_reserved_crtcs.count(crtc)) in reserve_crtc()
121 m_reserved_crtcs.insert(crtc); in reserve_crtc()
122 return crtc; in reserve_crtc()
128 Crtc* ResourceManager::reserve_crtc(Crtc* crtc) in reserve_crtc() argument
130 if (!crtc) in reserve_crtc()
133 if (m_reserved_crtcs.count(crtc)) in reserve_crtc()
[all …]
/external/libdrm/tests/kms/
Dlibkms-test-crtc.c28 struct kms_crtc *crtc; in kms_crtc_create() local
30 crtc = calloc(1, sizeof(*crtc)); in kms_crtc_create()
31 if (!crtc) in kms_crtc_create()
34 crtc->device = device; in kms_crtc_create()
35 crtc->id = id; in kms_crtc_create()
37 return crtc; in kms_crtc_create()
40 void kms_crtc_free(struct kms_crtc *crtc) in kms_crtc_free() argument
42 free(crtc); in kms_crtc_free()
/external/drm_hwcomposer/
Ddrmdevice.cpp96 std::unique_ptr<DrmCrtc> crtc(new DrmCrtc(this, c, i)); in Init() local
99 ret = crtc->Init(); in Init()
104 crtcs_.emplace_back(std::move(crtc)); in Init()
118 for (auto &crtc : crtcs_) { in Init() local
119 if ((1 << crtc->pipe()) & e->possible_crtcs) in Init()
120 possible_crtcs.push_back(crtc.get()); in Init()
122 if (crtc->id() == e->crtc_id) in Init()
123 current_crtc = crtc.get(); in Init()
291 for (auto &crtc : crtcs_) { in AvailableWritebackConnector() local
292 if (crtc->display() == display) in AvailableWritebackConnector()
[all …]
Dplatform.cpp27 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, in GetUsablePlanes() argument
32 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }); in GetUsablePlanes()
35 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }); in GetUsablePlanes()
84 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, in ProvisionPlanes() argument
88 std::vector<DrmPlane *> planes = GetUsablePlanes(crtc, primary_planes, in ProvisionPlanes()
91 ALOGE("Display %d has no usable planes", crtc->display()); in ProvisionPlanes()
97 int ret = i->ProvisionPlanes(&composition, layers, crtc, &planes); in ProvisionPlanes()
109 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, in ProvisionPlanes() argument
119 ret = Emplace(composition, planes, DrmCompositionPlane::Type::kLayer, crtc, in ProvisionPlanes()
135 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, in ProvisionPlanes() argument
[all …]
Ddrmdisplaycompositor.cpp127 DrmCrtc *crtc = drm->GetCrtcForDisplay(display_); in CreateInitializedComposition() local
128 if (!crtc) { in CreateInitializedComposition()
138 int ret = comp->Init(drm, crtc, importer.get(), planner_.get(), 0); in CreateInitializedComposition()
252 DrmCrtc *crtc = drm->GetCrtcForDisplay(display_); in CommitFrame() local
253 if (!crtc) { in CommitFrame()
269 ret = SetupWritebackCommit(pset, crtc->id(), writeback_conn, in CommitFrame()
276 if (crtc->out_fence_ptr_property().id() != 0) { in CommitFrame()
277 ret = drmModeAtomicAddProperty(pset, crtc->id(), in CommitFrame()
278 crtc->out_fence_ptr_property().id(), in CommitFrame()
279 (uint64_t)&out_fences[crtc->pipe()]); in CommitFrame()
[all …]
Ddrmdisplaycomposition.h67 DrmCompositionPlane(Type type, DrmPlane *plane, DrmCrtc *crtc) in DrmCompositionPlane() argument
68 : type_(type), plane_(plane), crtc_(crtc) { in DrmCompositionPlane()
70 DrmCompositionPlane(Type type, DrmPlane *plane, DrmCrtc *crtc, in DrmCompositionPlane() argument
74 crtc_(crtc), in DrmCompositionPlane()
89 DrmCrtc *crtc() const { in crtc() function
114 int Init(DrmDevice *drm, DrmCrtc *crtc, Importer *importer, Planner *planner,
154 DrmCrtc *crtc() const { in crtc() function
Dplatform.h66 DrmCrtc *crtc,
84 DrmCompositionPlane::Type type, DrmCrtc *crtc, in Emplace() argument
99 composition->emplace_back(type, plane, crtc, layer.first); in Emplace()
121 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc,
133 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes,
144 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc,
154 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc,
/external/libkmsxx/py/tests/
Dtrans-test.py13 crtc = res.reserve_crtc(conn) variable
18 if p.supports_crtc(crtc) == False:
43 crtc.set_props({
53 print("set crtc {}, plane {}, fb {}".format(crtc.id, planes[i].id, fbs[i].id))
59 "CRTC_ID": crtc.id,
82 crtc.set_props({
92 print("set crtc {}, plane {}, fb {}".format(crtc.id, planes[i].id, fbs[i].id))
98 "CRTC_ID": crtc.id,
125 crtc.set_props({
138 "CRTC_ID": crtc.id,
[all …]
Dctm_test.py33 crtc = res.reserve_crtc(conn) variable
39 crtc.set_mode(conn, fb, mode)
49 crtc.set_prop("CTM", ctmb.id)
59 crtc.set_prop("CTM", ctmb.id)
71 crtc.set_prop("CTM", ctmb.id)
76 crtc.disable_mode()
80 crtc.set_mode(conn, fb, mode)
84 crtc.set_prop("CTM", 0)
Dsync.py90 def __init__(self, crtc, width, height): argument
92 self.crtc = crtc
96 self.fb1 = pykms.DumbFramebuffer(crtc.card, width, height, "XR24");
97 self.fb2 = pykms.DumbFramebuffer(crtc.card, width, height, "XR24");
149 req = pykms.AtomicReq(self.crtc.card)
150 req.add(self.crtc.primary_plane, { 'FB_ID': fb.id, 'IN_FENCE_FD': fence.fd })
174 crtc = res.reserve_crtc(conn)
177 flip_handler = FlipHandler(crtc, mode.hdisplay, mode.vdisplay)
184 req.add(conn, 'CRTC_ID', crtc.id)
185 req.add(crtc, { 'ACTIVE': 1, 'MODE_ID': mode_blob.id })
[all …]
Drottest.py12 crtc = res.reserve_crtc(conn) variable
15 rootplane = res.reserve_primary_plane(crtc, pykms.PixelFormat.XRGB8888)
16 plane = res.reserve_overlay_plane(crtc, pykms.PixelFormat.NV12)
22 req.add(conn, "CRTC_ID", crtc.id)
24 req.add(crtc, {"ACTIVE": 1,
46 def show_rot_plane(crtc, plane, fb, rot, x_scale, y_scale): argument
79 "CRTC_ID": crtc.id,
125 show_rot_plane(crtc, plane, fb, current_rot, x_scale, y_scale)
168 show_rot_plane(crtc, plane, fb, current_rot, x_scale, y_scale)
Dplane_csc.py8 crtc = res.reserve_crtc(conn) variable
11 plane = res.reserve_generic_plane(crtc, pykms.PixelFormat.UYVY)
20 req.add(conn, "CRTC_ID", crtc.id)
21 req.add(crtc, {"ACTIVE": 1,
24 input("Press enter to enable crtc idx %d at %s" % (crtc.idx, conn.fullname))
31 "CRTC_ID": crtc.id,
Dbig_fb.py46 crtc = res.reserve_crtc(conn) variable
47 crtc_list.append(crtc)
71 crtc = crtc_list[i] variable
74 plane = res.reserve_generic_plane(crtc)
79 req.add(conn, 'CRTC_ID', crtc.id)
80 req.add(crtc, {'ACTIVE': 1,
83 'CRTC_ID': crtc.id,
175 crtc = crtc_list[i]
181 'CRTC_ID': crtc.id,
207 crtc = crtc_list[i]
[all …]
Dcam.py14 crtc = res.reserve_crtc(conn) variable
15 plane = res.reserve_overlay_plane(crtc, fmt)
21 req.add(conn, "CRTC_ID", crtc.id)
22 req.add(crtc, {"ACTIVE": 1,
53 "CRTC_ID": crtc.id,
60 crtc.set_plane(plane, fb, 0, 0, fb.width, fb.height,
Dalpha-test.py9 crtc = res.reserve_crtc(conn) variable
15 p = res.reserve_generic_plane(crtc)
37 crtc.set_props({
48 print("set crtc {}, plane {}, fb {}".format(crtc.id, p.id, fbs[i].id))
52 "CRTC_ID": crtc.id,
Dtest.py24 crtc = res.reserve_crtc(conn) variable
25 plane = res.reserve_generic_plane(crtc)
46 req.add(conn, "CRTC_ID", crtc.id)
48 req.add(crtc, {"ACTIVE": 1,
52 "CRTC_ID": crtc.id,
Dmodeset_event.py29 crtc = res.reserve_crtc(conn) variable
30 pplane = res.reserve_primary_plane(crtc)
51 req.add(conn, "CRTC_ID", crtc.id)
52 req.add(crtc, {"ACTIVE": 1,
55 "CRTC_ID": crtc.id,
/external/libkmsxx/utils/
Dkmstest.cpp52 Crtc* crtc; member
97 output.crtc = resman.reserve_crtc(output.connector); in get_default_crtc()
99 if (!output.crtc) in get_default_crtc()
140 output.crtc = c; in parse_crtc()
147 output.crtc = crtcs[num]; in parse_crtc()
150 output.crtc = output.connector->get_current_crtc(); in parse_crtc()
189 output.crtc = c; in parse_crtc()
196 output.crtc = crtcs[num]; in parse_crtc()
199 output.crtc = output.connector->get_current_crtc(); in parse_crtc()
237 if (!resman.reserve_crtc(output.crtc)) in parse_crtc()
[all …]
Dkmsview.cpp11 static void read_frame(ifstream& is, DumbFramebuffer* fb, Crtc* crtc, Plane* plane) in read_frame() argument
16 unsigned w = min(crtc->width(), fb->width()); in read_frame()
17 unsigned h = min(crtc->height(), fb->height()); in read_frame()
19 int r = crtc->set_plane(plane, *fb, in read_frame()
91 auto crtc = res.reserve_crtc(conn); in main() local
92 auto plane = res.reserve_overlay_plane(crtc, pixfmt); in main()
106 read_frame(is, fb, crtc, plane); in main()
/external/libdrm/tests/modetest/
Dmodetest.c70 struct crtc { struct
71 drmModeCrtc *crtc; member
102 struct crtc *crtcs;
466 struct crtc *_crtc = &dev->resources->crtcs[i]; in dump_crtcs()
467 drmModeCrtc *crtc = _crtc->crtc; in dump_crtcs() local
468 if (!crtc) in dump_crtcs()
472 crtc->crtc_id, in dump_crtcs()
473 crtc->buffer_id, in dump_crtcs()
474 crtc->x, crtc->y, in dump_crtcs()
475 crtc->width, crtc->height); in dump_crtcs()
[all …]
/external/libkmsxx/kms++util/inc/kms++util/
Dresourcemanager.h18 Crtc* reserve_crtc(Crtc* crtc);
19 Plane* reserve_plane(Crtc* crtc, PlaneType type, PixelFormat format = PixelFormat::Undefined);
21 Plane* reserve_generic_plane(Crtc* crtc, PixelFormat format = PixelFormat::Undefined);
22 Plane* reserve_primary_plane(Crtc* crtc, PixelFormat format = PixelFormat::Undefined);
23 Plane* reserve_overlay_plane(Crtc* crtc, PixelFormat format = PixelFormat::Undefined);
/external/libdrm/tests/modeprint/
Dmodeprint.c227 static int printCrtc(int fd, drmModeResPtr res, drmModeCrtcPtr crtc, uint32_t id) in printCrtc() argument
231 printf("\tx : %i\n", crtc->x); in printCrtc()
232 printf("\ty : %i\n", crtc->y); in printCrtc()
233 printf("\twidth : %i\n", crtc->width); in printCrtc()
234 printf("\theight : %i\n", crtc->height); in printCrtc()
235 printf("\tmode : %p\n", &crtc->mode); in printCrtc()
236 printf("\tgamma size : %d\n", crtc->gamma_size); in printCrtc()
259 drmModeCrtcPtr crtc; in printRes() local
303 crtc = drmModeGetCrtc(fd, res->crtcs[i]); in printRes()
305 if (!crtc) in printRes()
[all …]

123