summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/dri/intel/intel_context.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@tungstengraphics.com>2008-06-24 13:09:43 +0200
committerJakob Bornecrantz <jakob@tungstengraphics.com>2008-06-24 14:33:18 +0200
commit2d11411b19f725591e096b8a75dec94831d7bce7 (patch)
treee19e227f4ea0fceb7f43d1d3910f980b933f5913 /src/gallium/winsys/dri/intel/intel_context.c
parente8af160b247a4cf60c82a3d0c63ec952aef22d96 (diff)
i915: Moved screen creation to intel_be_device
Diffstat (limited to 'src/gallium/winsys/dri/intel/intel_context.c')
-rw-r--r--src/gallium/winsys/dri/intel/intel_context.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/gallium/winsys/dri/intel/intel_context.c b/src/gallium/winsys/dri/intel/intel_context.c
index 8284e0edbb..97ef731aaa 100644
--- a/src/gallium/winsys/dri/intel/intel_context.c
+++ b/src/gallium/winsys/dri/intel/intel_context.c
@@ -134,25 +134,6 @@ static const struct dri_debug_control debug_control[] = {
-/**
- * Create i915 hardware rendering context.
- */
-static struct pipe_context *
-intel_create_i915simple(struct intel_context *intel,
- struct pipe_winsys *winsys)
-{
- struct pipe_screen *screen;
-
- /* Fill in this struct with callbacks that i915simple will need to
- * communicate with the window system, buffer manager, etc.
- */
- screen = i915_create_screen(winsys, intel->intelScreen->deviceID);
-
- /* Create the i915simple context:
- */
- return i915_create_context(screen, winsys, &intel->base.base );
-}
-
static void
intel_lock_hardware(struct intel_be_context *context)
{
@@ -250,7 +231,9 @@ intelCreateContext(const __GLcontextModes * visual,
case PCI_CHIP_Q35_G:
case PCI_CHIP_I915_G:
case PCI_CHIP_I915_GM:
- pipe = intel_create_i915simple( intel, &intelScreen->base.base );
+ pipe = i915_create_context(intelScreen->base.screen,
+ &intelScreen->base.base,
+ &intel->base.base);
break;
default:
fprintf(stderr, "Unknown PCIID %x in %s, using software driver\n",