Hello!

I'd like to make some changes in the current FX driver:
I'd like to replace the current

fxMesaCreateContext with two, or three calls:
    choosePixelFormat (? this might not be neccesary...)
    createContext, and
    setDrawable.

I'd also like to add an
unsetDrawable call, which would detach the Voodoo hardware from the context.
But the context would still exists.



The reason for those changes:
- It conforms more to the other OpenGL interfaces (glx,wgl,agl).
- On MacOS, some games needs to switch to draw 2D. However on Banshee+V3
cards the grSstControl(ENABLE/DISABLE) doesn't works. So drawing to 2D would
be only possible by destroying and recreating the whole OpenGL context. With
these changes it would be only an unset/setDrawable.
- There could be more than one fx-context. (But changing between them would
be costly.) I think for multiplie contexts once we also should consider
switching from per-context texture management to per-tmu texture management.
I don't see it too complicated.

Before I would start does anyone has requirements/comments for those new
interface calls?

Miklos.


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to