At this point in time, r300 and r600 will probably share a lot of buffer
management (softpipe r600 already works) so I am not too inclined to move
that code out. Someday, though, that might change.

Posting from a mobile, pardon my terseness. ~ C.

On Jan 29, 2010 11:46 AM, "Keith Whitwell" <kei...@vmware.com> wrote:

Basically we needed to enforce a strict layering between state-tracker,
driver and winsys, so that everything that the state-tracker did would go
through the driver level and have the driver be able to intercept that and
inject whatever necessary behaviour at that level.

Previously, many of the buffer management functions bypassed the driver and
landed directly in the winsys, which turned out to be a big problem if the
driver needed to do something special with those functions.  I think the
svga device fell into this category.

At this stage, the pipe_winsys struct was deprecated, and drivers have been
encouraged to define their own winsys interfaces.  Because we didn't want to
disrupt all the drivers, we defined a layered implementation of the screen
functions in terms of the old pipe_winsys entity, and hooked that up in
r300, nvXX, softpipe, etc, in the hope that they would slowly migrate to a
pure pipe_screen implementation.  So far nobody has done that afaik, but
sooner or later it would be good to clean this up.

One thing that will probably happen sooner rather than later is that
softpipe will stop using pipe_winsys as its backend interface and just turn
to MALLOC() for allocations and have a winsys that only exposes
scanout-buffer allocations.

Keith
________________________________________
From: Corbin Simpson [mostawesomed...@gmail.com]
Sent: Friday, January 29, 2010 11:05 AM
To: Cooper Yuan
Cc: Mesa3D-Development
Subject: Re: [Mesa3d-dev] About buffer management functions in gallium

On Fri, Jan 29, 2010 at 1:44 AM, Cooper Yuan <coopery...@gmail.com> wrote: >
Hi Corbin, > I noticed...
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the
business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to