i915: Complete the screen -> device renaming
authorJakob Bornecrantz <jakob@aurora.(none)>
Tue, 8 Jul 2008 12:41:17 +0000 (14:41 +0200)
committerJakob Bornecrantz <jakob@aurora.(none)>
Tue, 8 Jul 2008 12:41:17 +0000 (14:41 +0200)
src/gallium/winsys/egl_drm/intel/intel_context.c
src/gallium/winsys/egl_drm/intel/intel_context.h
src/gallium/winsys/egl_drm/intel/intel_device.c
src/gallium/winsys/egl_drm/intel/intel_swapbuffers.c

index c2003f5e0eaf7e2424175a56ec4f96bb51deced2..927addb834c9573bba0788f981f5fe2fc28b692a 100644 (file)
@@ -147,13 +147,13 @@ int
 intel_create_context(struct egl_drm_context *egl_context, const __GLcontextModes *visual, void *sharedContextPrivate)
 {
        struct intel_context *intel = CALLOC_STRUCT(intel_context);
-       struct intel_device *screen = (struct intel_device *)egl_context->device->priv;
+       struct intel_device *device = (struct intel_device *)egl_context->device->priv;
        struct pipe_context *pipe;
        struct st_context *st_share = NULL;
 
        egl_context->priv = intel;
 
-       intel->intel_device = screen;
+       intel->intel_device = device;
        intel->egl_context = egl_context;
        intel->egl_device = egl_context->device;
 
@@ -161,19 +161,19 @@ intel_create_context(struct egl_drm_context *egl_context, const __GLcontextModes
        intel->base.hardware_unlock = intel_unlock_hardware;
        intel->base.hardware_locked = intel_locked_hardware;
 
-       intel_be_init_context(&intel->base, &screen->base);
+       intel_be_init_context(&intel->base, &device->base);
 
 #if 0
        pipe = intel_create_softpipe(intel, screen->winsys);
 #else
-       pipe = i915_create_context(screen->pipe, &screen->base.base, &intel->base.base);
+       pipe = i915_create_context(device->pipe, &device->base.base, &intel->base.base);
 #endif
 
        pipe->priv = intel;
 
        intel->st = st_create_context(pipe, visual, st_share);
 
-       screen->dummy = intel;
+       device->dummy = intel;
 
        return TRUE;
 }
@@ -220,7 +220,7 @@ intel_make_current(struct egl_drm_context *context, struct egl_drm_drawable *dra
 void
 intel_bind_frontbuffer(struct egl_drm_drawable *draw, struct egl_drm_frontbuffer *front)
 {
-       struct intel_device *intelScreen = (struct intel_device *)draw->device->priv;
+       struct intel_device *device = (struct intel_device *)draw->device->priv;
        struct intel_framebuffer *draw_fb = (struct intel_framebuffer *)draw->priv;
 
        if (draw_fb->front_buffer)
@@ -235,7 +235,7 @@ intel_bind_frontbuffer(struct egl_drm_drawable *draw, struct egl_drm_frontbuffer
 
        draw_fb->front = front;
 
-       driGenBuffers(intelScreen->base.staticPool, "front", 1, &draw_fb->front_buffer, 0, 0, 0);
+       driGenBuffers(device->base.staticPool, "front", 1, &draw_fb->front_buffer, 0, 0, 0);
        driBOSetReferenced(draw_fb->front_buffer, front->handle);
 
        st_resize_framebuffer(draw_fb->stfb, draw->w, draw->h);
index 48f9e21b5dce8af05ba5b392c8ec694f1304ff74..dfa4720b081e99e026ef76beb1a394cea79f5c2a 100644 (file)
@@ -64,7 +64,7 @@ struct intel_framebuffer
 {
        struct st_framebuffer *stfb;
 
-       struct intel_device *screen;
+       struct intel_device *device;
        struct _DriBufferObject *front_buffer;
        struct egl_drm_frontbuffer *front;
 };
index 7496c1bb30cdc89a195cc1d6f214fab05b44184b..a601904ba441008811aeaab71eb5835c1e744e88 100644 (file)
@@ -88,7 +88,7 @@ intel_create_drawable(struct egl_drm_drawable *drawable,
        if (!intelfb)
                return GL_FALSE;
 
-       intelfb->screen = drawable->device->priv;
+       intelfb->device = drawable->device->priv;
 
        if (visual->redBits == 5)
                colorFormat = PIPE_FORMAT_R5G6B5_UNORM;
index 86e4a0f92a57b07b45360d174aeea5bd96cc29cb..2edcbc79fffbb7891eccd3b6f67d191cd8fed03f 100644 (file)
@@ -69,7 +69,7 @@ intel_display_surface(struct egl_drm_drawable *draw,
        //const int srcWidth = surf->width;
        //const int srcHeight = surf->height;
 
-       intel = intel_fb->screen->dummy;
+       intel = intel_fb->device->dummy;
        if (!intel) {
                printf("No dummy context\n");
                return;