/external/igt-gpu-tools/tests/ |
D | kms_setmode.c | 125 static bool crtc_supports_mode(struct crtc_config *crtc, drmModeModeInfo *mode) in crtc_supports_mode() argument 129 for (i = 0; i < crtc->connector_count; i++) { in crtc_supports_mode() 130 if (!connector_supports_mode(crtc->cconfs[i].connector, mode)) in crtc_supports_mode() 169 static void create_fb_for_crtc(struct crtc_config *crtc, in create_fb_for_crtc() argument 178 fb_id = igt_create_pattern_fb(drm_fd, crtc->mode.hdisplay, in create_fb_for_crtc() 179 crtc->mode.vdisplay, in create_fb_for_crtc() 186 static void get_mode_for_crtc(struct crtc_config *crtc, in get_mode_for_crtc() argument 196 for (i = 0; i < crtc->connector_count; i++) { in get_mode_for_crtc() 197 mode = &crtc->cconfs[i].default_mode; in get_mode_for_crtc() 198 if (crtc_supports_mode(crtc, mode)) in get_mode_for_crtc() [all …]
|
D | kms_rmfb.c | 59 drmModeCrtc *crtc; in test_rmfb() local 110 crtc = drmModeGetCrtc(data->drm_fd, output->config.crtc->crtc_id); in test_rmfb() 112 igt_assert_eq(crtc->buffer_id, fb.fb_id); in test_rmfb() 114 drmModeFreeCrtc(crtc); in test_rmfb() 129 crtc = drmModeGetCrtc(data->drm_fd, output->config.crtc->crtc_id); in test_rmfb() 131 igt_assert_eq(crtc->buffer_id, 0); in test_rmfb() 133 drmModeFreeCrtc(crtc); in test_rmfb()
|
/external/libkmsxx/kms++util/src/ |
D | resourcemanager.cpp | 117 if (Crtc* crtc = conn->get_current_crtc()) { in reserve_crtc() local 118 m_reserved_crtcs.insert(crtc); in reserve_crtc() 119 return crtc; in reserve_crtc() 122 for (Crtc* crtc : conn->get_possible_crtcs()) { in reserve_crtc() 123 if (m_reserved_crtcs.count(crtc)) in reserve_crtc() 126 m_reserved_crtcs.insert(crtc); in reserve_crtc() 127 return crtc; in reserve_crtc() 133 Crtc* ResourceManager::reserve_crtc(Crtc* crtc) in reserve_crtc() argument 135 if (!crtc) in reserve_crtc() 138 if (m_reserved_crtcs.count(crtc)) in reserve_crtc() [all …]
|
/external/libdrm/tests/kms/ |
D | libkms-test-crtc.c | 28 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/libkmsxx/py/tests/ |
D | ctm_test.py | 38 crtc = res.reserve_crtc(conn) variable 50 plane = res.reserve_generic_plane(crtc, fb.format) 55 crtc.disable_mode() 66 req.add(conn, "CRTC_ID", crtc.id) 67 req.add(crtc, {"ACTIVE": 1, 70 req.add_plane(plane, fb, crtc) 84 crtc.set_prop("CTM", ctmb.id) 94 crtc.set_prop("CTM", ctmb.id) 99 crtc.disable_mode() 103 crtc.set_mode(conn, fb, mode) [all …]
|
D | gamma.py | 14 crtc = res.reserve_crtc(conn) variable 20 crtc.set_mode(conn, fb, mode) 25 prop = crtc.get_prop("GAMMA_LUT") 28 prop = crtc.get_prop("DEGAMMA_LUT") 38 len = crtc.legacy_gamma_size() 46 crtc.legacy_gamma_set(table) 49 len = crtc.legacy_gamma_size() 57 crtc.legacy_gamma_set(table) 74 crtc.set_prop(prop, gamma.id) 78 crtc.set_prop(prop, 0)
|
D | trans-test.py | 35 crtc = res.reserve_crtc(conn) variable 40 if p.supports_crtc(crtc) == False: 79 crtc.set_props({ 94 "CRTC_ID": crtc.id, 112 "CRTC_ID": crtc.id, 146 crtc.set_props({ 161 "CRTC_ID": crtc.id, 179 "CRTC_ID": crtc.id, 216 crtc.set_props({ 231 "CRTC_ID": crtc.id, [all …]
|
D | global_alpha_test.py | 16 crtc = res.reserve_crtc(conn) variable 23 plane1 = res.reserve_generic_plane(crtc, format) 24 plane2 = res.reserve_generic_plane(crtc, format) 40 req.add(conn, "CRTC_ID", crtc.id) 41 req.add(crtc, {"ACTIVE": 1, 43 req.add_plane(plane1, fb1, crtc) 44 req.add_plane(plane2, fb2, crtc)
|
D | wb-m2m-crop.py | 20 crtc = res.reserve_crtc(conn) variable 21 plane1 = res.reserve_overlay_plane(crtc, ifmt) 22 plane2 = res.reserve_overlay_plane(crtc, ofmt) 32 req.add(conn, "CRTC_ID", crtc.id) 33 req.add(crtc, {"ACTIVE": 1, 53 req.add_plane(plane1, src_fbs[0], crtc, dst=(0, 0, 400, 480)) 54 req.add_plane(plane2, dst_fbs[1], crtc, dst=(400, 0, 400, 480)) 95 req.add_plane(plane1, ifb, crtc, dst=(0, 0, 400, 480)) 96 req.add_plane(plane2, ofb, crtc, dst=(400, 0, 400, 480))
|
D | sync.py | 90 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 …]
|
D | rottest.py | 12 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)
|
D | plane_csc.py | 8 crtc = res.reserve_crtc(conn) variable 11 plane = res.reserve_generic_plane(crtc, pykms.PixelFormat.UYVY) 19 req.add(conn, "CRTC_ID", crtc.id) 20 req.add(crtc, {"ACTIVE": 1, 23 input("Press enter to enable crtc idx %d at %s" % (crtc.idx, conn.fullname)) 29 req.add_plane(plane, fb, crtc)
|
D | scale.py | 8 def plane_commit(card, crtc, plane, fb, x, y, w, h) : argument 10 req.add_plane(plane, fb, crtc, None, (x, y, w, h)) 26 crtc = res.reserve_crtc(conn) variable 30 plane = res.reserve_generic_plane(crtc, format) 37 req.add(conn, "CRTC_ID", crtc.id) 38 req.add(crtc, {"ACTIVE": 1, 70 plane_commit(card, crtc, plane, fb, X, Y, W, H)
|
D | testmodes.py | 15 crtc = res.reserve_crtc(conn) variable 16 plane = res.reserve_generic_plane(crtc) 39 req.add_connector(conn, crtc) 40 req.add_crtc(crtc, modeb) 41 req.add_plane(plane, fb, crtc, dst=(0, 0, mode.hdisplay, mode.vdisplay))
|
/external/drm_hwcomposer/drm/ |
D | DrmDevice.cpp | 171 std::unique_ptr<DrmCrtc> crtc(new DrmCrtc(this, c, i)); in Init() local 174 ret = crtc->Init(); in Init() 179 crtcs_.emplace_back(std::move(crtc)); in Init() 193 for (auto &crtc : crtcs_) { in Init() local 194 if ((1 << crtc->pipe()) & e->possible_crtcs) in Init() 195 possible_crtcs.push_back(crtc.get()); in Init() 197 if (crtc->id() == e->crtc_id) in Init() 198 current_crtc = crtc.get(); in Init() 373 for (auto &crtc : crtcs_) { in AvailableWritebackConnector() local 374 if (crtc->display() == display) in AvailableWritebackConnector() [all …]
|
/external/libkmsxx/utils/ |
D | kmstest.cpp | 53 Crtc* crtc; member 95 output.crtc = resman.reserve_crtc(output.connector); in get_default_crtc() 97 if (!output.crtc) in get_default_crtc() 137 output.crtc = c; in parse_crtc() 144 output.crtc = crtcs[num]; in parse_crtc() 147 output.crtc = output.connector->get_current_crtc(); in parse_crtc() 186 output.crtc = c; in parse_crtc() 193 output.crtc = crtcs[num]; in parse_crtc() 196 output.crtc = output.connector->get_current_crtc(); in parse_crtc() 234 if (output.crtc) in parse_crtc() [all …]
|
D | kmsview.cpp | 12 static void read_frame(ifstream& is, DumbFramebuffer* fb, Crtc* crtc, Plane* plane) in read_frame() argument 17 unsigned w = min(crtc->width(), fb->width()); in read_frame() 18 unsigned h = min(crtc->height(), fb->height()); in read_frame() 20 int r = crtc->set_plane(plane, *fb, in read_frame() 86 auto crtc = res.reserve_crtc(conn); in main() local 87 auto plane = res.reserve_overlay_plane(crtc, pixfmt); in main() 104 read_frame(is, fb, crtc, plane); in main()
|
/external/igt-gpu-tools/tools/ |
D | skl_ddb_allocation.c | 54 #define for_each_crtc(dev, crtc) \ argument 55 for (int i = 0; i < 3 && (crtc = &crtcs[i].base); i++) 87 static bool intel_crtc_active(struct drm_crtc *crtc) in intel_crtc_active() argument 89 return crtc->active; in intel_crtc_active() 97 static int intel_num_planes(struct intel_crtc *crtc) in intel_num_planes() argument 171 struct drm_crtc *crtc; in skl_ddb_get_pipe_allocation_limits() local 185 for_each_crtc(dev, crtc) { in skl_ddb_get_pipe_allocation_limits() 186 if (!intel_crtc_active(crtc)) in skl_ddb_get_pipe_allocation_limits() 189 if (crtc == for_crtc) in skl_ddb_get_pipe_allocation_limits() 240 skl_allocate_pipe_ddb(struct drm_crtc *crtc, in skl_allocate_pipe_ddb() argument [all …]
|
/external/drm_hwcomposer/compositor/ |
D | Planner.cpp | 34 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, in GetUsablePlanes() argument 39 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }); in GetUsablePlanes() 42 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }); in GetUsablePlanes() 98 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, in ProvisionPlanes() argument 102 std::vector<DrmPlane *> planes = GetUsablePlanes(crtc, primary_planes, in ProvisionPlanes() 105 ALOGE("Display %d has no usable planes", crtc->display()); in ProvisionPlanes() 111 int ret = i->ProvisionPlanes(&composition, layers, crtc, &planes); in ProvisionPlanes() 123 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, in ProvisionPlanes() argument 133 ret = Emplace(composition, planes, DrmCompositionPlane::Type::kLayer, crtc, in ProvisionPlanes() 149 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, in ProvisionPlanes() argument [all …]
|
D | Planner.h | 42 DrmCrtc *crtc, 60 DrmCompositionPlane::Type type, DrmCrtc *crtc, in Emplace() argument 75 composition->emplace_back(type, plane, crtc, layer.first); in Emplace() 97 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 109 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, 120 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 130 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc,
|
D | DrmDisplayCompositor.cpp | 139 DrmCrtc *crtc = drm->GetCrtcForDisplay(display_); in CreateInitializedComposition() local 140 if (!crtc) { in CreateInitializedComposition() 150 int ret = comp->Init(drm, crtc, importer.get(), planner_.get(), 0); in CreateInitializedComposition() 277 DrmCrtc *crtc = drm->GetCrtcForDisplay(display_); in CommitFrame() local 278 if (!crtc) { in CommitFrame() 294 ret = SetupWritebackCommit(pset, crtc->id(), writeback_conn, in CommitFrame() 301 if (crtc->out_fence_ptr_property().id() != 0) { in CommitFrame() 302 ret = drmModeAtomicAddProperty(pset, crtc->id(), in CommitFrame() 303 crtc->out_fence_ptr_property().id(), in CommitFrame() 304 (uint64_t)&out_fences[crtc->pipe()]); in CommitFrame() [all …]
|
/external/libkmsxx/kms++util/inc/kms++util/ |
D | resourcemanager.h | 19 Crtc* reserve_crtc(Crtc* crtc); 20 void release_crtc(Crtc* crtc); 21 Plane* reserve_plane(Crtc* crtc, PlaneType type, PixelFormat format = PixelFormat::Undefined); 23 Plane* reserve_generic_plane(Crtc* crtc, PixelFormat format = PixelFormat::Undefined); 24 Plane* reserve_primary_plane(Crtc* crtc, PixelFormat format = PixelFormat::Undefined); 25 Plane* reserve_overlay_plane(Crtc* crtc, PixelFormat format = PixelFormat::Undefined);
|
/external/libkmsxx/py/pykms/ |
D | __init__.py | 87 def __atomic_req_add_connector(req, conn, crtc): argument 88 req.add(conn, "CRTC_ID", crtc.id if crtc else 0) 90 def __atomic_req_add_crtc(req, crtc, mode_blob): argument 92 req.add(crtc, {"ACTIVE": 1, "MODE_ID": mode_blob.id}) 94 req.add(crtc, {"ACTIVE": 0, "MODE_ID": 0}) 96 def __atomic_req_add_plane(req, plane, fb, crtc, argument 106 "CRTC_ID": crtc.id if crtc else 0}
|
/external/libdrm/tests/modetest/ |
D | modetest.c | 74 struct crtc { struct 75 drmModeCrtc *crtc; member 103 struct crtc *crtcs; 484 struct crtc *_crtc = &dev->resources->crtcs[i]; in dump_crtcs() 485 drmModeCrtc *crtc = _crtc->crtc; in dump_crtcs() local 486 if (!crtc) in dump_crtcs() 490 crtc->crtc_id, in dump_crtcs() 491 crtc->buffer_id, in dump_crtcs() 492 crtc->x, crtc->y, in dump_crtcs() 493 crtc->width, crtc->height); in dump_crtcs() [all …]
|
/external/igt-gpu-tools/overlay/kms/ |
D | kms-overlay.c | 59 int crtc; member 87 static int attach_to_crtc(int fd, int crtc, int x, int y, struct kms_image *image) in attach_to_crtc() argument 91 s.crtc_id = crtc; in attach_to_crtc() 106 static int detach_from_crtc(int fd, int crtc) in detach_from_crtc() argument 111 s.crtc_id = crtc; in detach_from_crtc() 122 attach_to_crtc(priv->fd, priv->crtc, priv->x, priv->y, &priv->image); in kms_overlay_show() 132 detach_from_crtc(priv->fd, priv->crtc); in kms_overlay_hide() 240 priv->crtc = 0; in kms_overlay_create() 256 priv->crtc = get_pipe.crtc_id; in kms_overlay_create() 259 if (priv->crtc == 0) in kms_overlay_create() [all …]
|