> After all, Windows' display and input drivers have DirectX
> hooks in them,
> so why shouldn't Wine's?
Since Microsoft is not world famous for their well designed API:s
that is not really something that support your position very much.
> With this kind of restructuring, we'll want to make the driver API as
> independant of X as possible.
Ideally yes. However I think DirectX it too low-level to be able to
abstract away from X11 and its extensions in the way you wish.
> This seems easy for the DXGrab
> and OpenGL
> stuff, but I don't quite see how we'll handle XVidMode and DGA2 in a
> clean way. We can simply expose driver API that allows DDraw to make
> driver calls that are equivalent to the X calls is uses now, but I
> don't think that would buy us much over what we have now.
Perhaps. But moving too much to the x11drv has other problems.
I still think it is better to have a ddraw_x11drv with some
hooks in the x11drv to access X11 extensions and such.
There is no reason to repeat more of Microsoft design mistakes
than we really have to.
Microsoft abandoned WinG for DirectX.
I wonder when they will abandon DirectX for something else?
In short please no DirectX aware hooks in the X11 driver.
We will regret it in the future.