diff options
author | Keith Whitwell <[email protected]> | 2007-08-05 17:23:38 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2007-08-05 17:25:36 +0100 |
commit | 1d1b9e6be45e75ad12a01c82e3c0d55ff9da4183 (patch) | |
tree | ce6fc42afb3c1bdc9224309052f444776cf56ad5 /src/mesa/pipe/softpipe/sp_context.h | |
parent | 5e7921b77874ce0142f0ab032c710a379d86ff09 (diff) |
Add a new interface between softpipe and the window system / buffer manager.
This interface is defined by softpipe and any window system (eg i915pipe)
wishing to use softpipe is required to implement the interface.
Currently the interface is all about buffer management.
Generalizing, each pipe driver will advertise an interface in a similar
spirit to this, and again any window system driver wishing to use that
rendering pipeline will have to implement the interface it defines. It
clearly isn't a one-way street however, as softpipe could just do its own
buffer management with malloc. The interaction with a buffer manager is
desired to allow us to exercise the hardware swapbuffers functionality of
the i915pipe driver, and also to get a feel for the way hardware drivers
which really need a buffer manager will work.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_context.h')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_context.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.h b/src/mesa/pipe/softpipe/sp_context.h index 3c379c9091a..43fa8acd763 100644 --- a/src/mesa/pipe/softpipe/sp_context.h +++ b/src/mesa/pipe/softpipe/sp_context.h @@ -38,8 +38,8 @@ #include "sp_quad.h" - struct softpipe_surface; +struct softpipe_winsys; struct draw_context; struct draw_stage; @@ -68,6 +68,8 @@ enum interp_mode { struct softpipe_context { struct pipe_context pipe; /**< base class */ + struct softpipe_winsys *winsys; /**< window system interface */ + /* The most recent drawing state as set by the driver: */ |