commit 2db441259ffb28c828e1c1e0d6de02e3d03d514c
parent 88041669580f71fb026b0b4d1a5a40d9cb8f60ca
Author: Michael Forney <mforney@mforney.org>
Date: Fri, 14 Jun 2013 04:35:59 -0700
Remove fb test writing
Diffstat:
M | output.c | | | 36 | +----------------------------------- |
1 file changed, 1 insertion(+), 35 deletions(-)
diff --git a/output.c b/output.c
@@ -7,7 +7,7 @@
#include <stdlib.h>
#include <string.h>
-#include <libdrm/i915_drm.h>
+#include <libdrm/drm.h>
#include <xf86drm.h>
static void bind_output(struct wl_client * client, void * data,
@@ -105,40 +105,6 @@ bool swc_output_initialize(struct swc_output * output, struct swc_drm * drm,
goto error_buffer0;
}
- {
- uint32_t color = 0x00339933;
- uint32_t line[output->width];
- uint32_t x, y;
- struct drm_i915_gem_pwrite arg = {
- .handle = output->buffers[0].bo->handle,
- .size = sizeof line,
- .data_ptr = (uint64_t) line
- };
-
- for (x = 0; x < output->width; ++x)
- line[x] = color;
-
- for (y = 0; y < output->height; ++y)
- {
- arg.offset += output->buffers[0].pitch;
- drmCommandWrite(drm->fd, DRM_I915_GEM_PWRITE, &arg, sizeof arg);
- }
-
- color = 0x00333399;
-
- arg.offset = 0;
- arg.handle = output->buffers[1].bo->handle;
-
- for (x = 0; x < output->width; ++x)
- line[x] = color;
-
- for (y = 0; y < output->height; ++y)
- {
- arg.offset += output->buffers[1].pitch;
- drmCommandWrite(drm->fd, DRM_I915_GEM_PWRITE, &arg, sizeof arg);
- }
- }
-
output->original_state.crtc = current_crtc;
if (drmModeSetCrtc(drm->fd, output->crtc_id, output->buffers[0].id, 0, 0,