[PATCH] [RFC] dix/mi: remove ChangeWindowAttributes from rendering path.
Dave Airlie
airlied at gmail.com
Mon Apr 4 14:26:42 PDT 2011
On Tue, Apr 5, 2011 at 6:42 AM, Aaron Plattner <aplattner at nvidia.com> wrote:
> On Mon, Apr 04, 2011 at 01:24:10PM -0700, Dave Airlie wrote:
>> > Are you planning on leaving the ChangeWindowAttrbutes screen hook there, or
>> > is it slated for deletion? I ask because we currently wrap CWA so we can
>> > watch for colormap changes on PseduoColor windows.
>> >
>>
>> Can you give me a why?
>
> ftp://download.nvidia.com/XFree86/Linux-x86/270.30/README/xconfigoptions.html#cioverlay
>
> When the colormap changes, we need to flush the updates through to the
> hardware.
Okay is there a better time to do this? CWA doesn't seem like a thing
that should be hitting hardware,
how many colormaps can you have in the hardware? one? one per window?
etc. Just wondering is
it really associated with the Screen and not the Window etc.
> We also hook heavily into the ValidateTree series of calls because properly
> sequencing window moves with asynchronous OpenGL clients is hard,
> especially with Xinerama in the picture. I guess maybe if you want to make
> Windows opaque to the graphics driver but not to extensions, we could
> marshal that stuff through our GLX extension module. Still, we have more
> than a decade's worth of bug fixes in that area and it would make me really
> nervous to try to rearrange that stuff.
You could release your GLX implementation source code and merge it
into the X.org
GLX implementation and this would make your life a lot easier,
Yes so extensions would hook onto the protocol screen instead of
hooking onto the
underlying GPU screen since they are an extension of the protocol. It
sounds like
this should be done via your GLX, and I've got a very tiny violin
playing at the thought of
you guys having to spend some money on keeping up with us for a change.
Dave.
More information about the xorg-devel
mailing list