splitting drawable and screens

Keith Packard keithp at keithp.com
Thu Oct 4 23:40:32 PDT 2012


Dave Airlie <airlied at gmail.com> writes:

> However this means that pDrawable->pScreen will be a protocol
> screen and the drivers will want to access the GPU screen.

Hrm. Sure would be nice if the drawables visible to the driver were also
GPU objects?

> So I'm left with two ideas on how to fix this (one ugly, one tedious):

> a) introduce pDrawable->pCurrentGPU which is a screen ptr for the
> currently rendering gpu on the drawable, the driver then uses this to
> get its current screenptr back, instead of using pDrawable->pScreen.

Could pScreen be the GPU object and we fix the rest of the server to use
pProtocolScreen instead? Would that be easier to transition in the
future to GPU-specific drawables objects (or, ideally, only pixmaps)?

> b) add pScreen to all the driver facing APIs, (GCOps, Picture ops,
> lots of ScreenRec).

Yuck.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20121004/93f3b424/attachment.pgp>


More information about the xorg-devel mailing list