commit f206987
Michael Forney
·
2014-01-22 11:19:18 +0000 UTC
parent de4b989
drm: Remove extra debugging info
1 files changed,
+0,
-29
+0,
-29
1@@ -227,9 +227,6 @@ static bool find_available_crtc(drmModeRes * resources,
2 possible_crtcs = encoder->possible_crtcs;
3 drmModeFreeEncoder(encoder);
4
5- printf("possible_crtcs: %u\n", possible_crtcs);
6- printf("taken_crtcs: %u\n", taken_crtcs);
7-
8 for (crtc_index = 0; crtc_index < resources->count_crtcs; ++crtc_index)
9 {
10 if ((possible_crtcs & (1 << crtc_index))
11@@ -258,7 +255,6 @@ static bool find_available_id(uint32_t * id)
12 static void handle_vblank(int fd, unsigned int sequence, unsigned int sec,
13 unsigned int usec, void * data)
14 {
15- printf("vblank\n");
16 }
17
18 static void handle_page_flip(int fd, unsigned int sequence, unsigned int sec,
19@@ -382,7 +378,6 @@ bool swc_drm_create_screens(struct wl_list * screens)
20 {
21 drmModeRes * resources;
22 drmModeConnector * connector;
23- drmModeCrtc * crtc;
24 uint32_t index;
25 struct swc_output * output;
26 uint32_t taken_crtcs = 0;
27@@ -393,36 +388,12 @@ bool swc_drm_create_screens(struct wl_list * screens)
28 return false;
29 }
30
31- /* XXX: crtcs */
32- for (index = 0; index < resources->count_crtcs; ++index)
33- {
34- printf("crtc[%u]: %u\n", index, resources->crtcs[index]);
35- crtc = drmModeGetCrtc(swc.drm->fd, resources->crtcs[index]);
36- printf("crtc, id: %u, x: %u, y: %u, width: %u, height: %u\n",
37- crtc->crtc_id, crtc->x, crtc->y, crtc->width, crtc->height);
38- drmModeFreeCrtc(crtc);
39- }
40-
41- for (index = 0; index < resources->count_encoders; ++index)
42- {
43- printf("encoder[%u]: %u\n", index, resources->encoders[index]);
44- drmModeEncoder * encoder = drmModeGetEncoder
45- (swc.drm->fd, resources->encoders[index]);
46- printf("encoder, id: %u, type: %u\n", encoder->encoder_id, encoder->encoder_type);
47- drmModeFreeEncoder(encoder);
48- }
49-
50 for (index = 0; index < resources->count_connectors;
51 ++index, drmModeFreeConnector(connector))
52 {
53 connector = drmModeGetConnector(swc.drm->fd,
54 resources->connectors[index]);
55
56- printf("connector, id: %u, type: %u, type_id: %u, connection: %u\n",
57- connector->connector_id, connector->connector_type,
58- connector->connector_type_id, connector->connection);
59-
60- /* XXX: connector id? */
61 if (connector->connection == DRM_MODE_CONNECTED)
62 {
63 uint32_t crtc_index;