summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-07 11:44:48 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-07 16:08:04 -0700
commit2611703b363ced1ad267d120ed89677299a36d9c (patch)
tree93a33a233cdce6a8a288ac83ba751ce7387090e6 /src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c
parentf40f45ceea7a827059b7b533f2160f98774c8a77 (diff)
Pass winsys as a parameter to intel_create_i915simple(), intel_create_softpipe()
Diffstat (limited to 'src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c b/src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c
index 5407973fba..7a93546bc2 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c
@@ -58,8 +58,12 @@ intel_is_format_supported(struct softpipe_winsys *sws, uint format)
}
+/**
+ * Create rendering context which uses software rendering.
+ */
struct pipe_context *
-intel_create_softpipe( struct intel_context *intel )
+intel_create_softpipe( struct intel_context *intel,
+ struct pipe_winsys *winsys )
{
struct intel_softpipe_winsys *isws = CALLOC_STRUCT( intel_softpipe_winsys );
@@ -71,6 +75,5 @@ intel_create_softpipe( struct intel_context *intel )
/* Create the softpipe context:
*/
- return softpipe_create( intel_create_pipe_winsys( intel ),
- &isws->sws );
+ return softpipe_create( winsys, &isws->sws );
}