commit 2db4412

Michael Forney  ·  2013-06-14 11:35:59 +0000 UTC
parent 8804166
Remove fb test writing
1 files changed,  +1, -35
+1, -35
 1@@ -7,7 +7,7 @@
 2 #include <stdlib.h>
 3 #include <string.h>
 4 
 5-#include <libdrm/i915_drm.h>
 6+#include <libdrm/drm.h>
 7 #include <xf86drm.h>
 8 
 9 static void bind_output(struct wl_client * client, void * data,
10@@ -105,40 +105,6 @@ bool swc_output_initialize(struct swc_output * output, struct swc_drm * drm,
11         goto error_buffer0;
12     }
13 
14-    {
15-        uint32_t color = 0x00339933;
16-        uint32_t line[output->width];
17-        uint32_t x, y;
18-        struct drm_i915_gem_pwrite arg = {
19-            .handle = output->buffers[0].bo->handle,
20-            .size = sizeof line,
21-            .data_ptr = (uint64_t) line
22-        };
23-
24-        for (x = 0; x < output->width; ++x)
25-            line[x] = color;
26-
27-        for (y = 0; y < output->height; ++y)
28-        {
29-            arg.offset += output->buffers[0].pitch;
30-            drmCommandWrite(drm->fd, DRM_I915_GEM_PWRITE, &arg, sizeof arg);
31-        }
32-
33-        color = 0x00333399;
34-
35-        arg.offset = 0;
36-        arg.handle = output->buffers[1].bo->handle;
37-
38-        for (x = 0; x < output->width; ++x)
39-            line[x] = color;
40-
41-        for (y = 0; y < output->height; ++y)
42-        {
43-            arg.offset += output->buffers[1].pitch;
44-            drmCommandWrite(drm->fd, DRM_I915_GEM_PWRITE, &arg, sizeof arg);
45-        }
46-    }
47-
48     output->original_state.crtc = current_crtc;
49 
50     if (drmModeSetCrtc(drm->fd, output->crtc_id, output->buffers[0].id, 0, 0,