* Re: EGL_MESA_screen_surface proposal [not found] ` <4236FC79.5000909@tungstengraphics.com> @ 2005-03-15 16:28 ` Jon Smirl 2005-03-15 16:36 ` Michel Danzer 0 siblings, 1 reply; 5+ messages in thread From: Jon Smirl @ 2005-03-15 16:28 UTC (permalink / raw) To: Brian Paul; +Cc: Xserver development, fbdev, DRI-EGL I cc'd this onto the other lists to get more opinions. Maybe we can turn this into a workable concept. On Tue, 15 Mar 2005 08:17:13 -0700, Brian Paul <brian.paul@tungstengraphics.com> wrote: > Perhaps the eglShowSurface() and eglScreenMode() functions should be > combined so the new surface and new display mode can be validated > together. That way, the undefined state between setting the new > surface and new mode can be avoided. In one of the other threads (on x.org&fbdev) people are arguing that mode setting and surface selection should not be combined. I think their concern comes from mode setting code is in fbdev and their allocation code is somewhere else. The problem is that fbdev doesn't have a memory manager so it has no concept of where the surfaces are. It relies on some other piece of software manage the surfaces. Maybe we should teach fbdev about the concept of surfaces. Initially the radeonfb dev driver would only know about two surfaces, one for each head. Name them default. Setting the mode on either head would have an implied parameter surface=default. surface=default is a special case since the surface type is mutable into what ever the mode requires. fbdev could then be extended to have a plugable API for enumerating surfaces. DRM would add other surfaces to this list each with a name. Now you can set the mode and specific surface=my_new_surface. If the mode and surface are incompatible you get an error. Another twist would be to set the mode just by specificing the surface name. That would cause a mode to be picked that can display the surface. -- Jon Smirl jonsmirl@gmail.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EGL_MESA_screen_surface proposal 2005-03-15 16:28 ` EGL_MESA_screen_surface proposal Jon Smirl @ 2005-03-15 16:36 ` Michel Danzer 2005-03-16 4:30 ` Jon Smirl 0 siblings, 1 reply; 5+ messages in thread From: Michel Danzer @ 2005-03-15 16:36 UTC (permalink / raw) To: Jon Smirl; +Cc: Brian Paul, Xserver development, fbdev, DRI-EGL On Tue, 2005-03-15 at 11:28 -0500, Jon Smirl wrote: > > On Tue, 15 Mar 2005 08:17:13 -0700, Brian Paul > <brian.paul@tungstengraphics.com> wrote: > > Perhaps the eglShowSurface() and eglScreenMode() functions should be > > combined so the new surface and new display mode can be validated > > together. That way, the undefined state between setting the new > > surface and new mode can be avoided. Makes sense to me. > In one of the other threads (on x.org&fbdev) people are arguing that > mode setting and surface selection should not be combined. Actually, I was arguing that mode setting and _memory management_ shouldn't be tied together, see my other post to dri-egl in this thread. The approach Brian is proposing is much more flexible, which I applaud. -- Michel Danzer, Linux Software Engineering \ Tel: +1 905-882-2600 ATI Technologies Inc., Markham, Ontario, Canada \ Extension: 3550 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EGL_MESA_screen_surface proposal 2005-03-15 16:36 ` Michel Danzer @ 2005-03-16 4:30 ` Jon Smirl 2005-03-16 4:44 ` Vladimir Dergachev 2005-03-16 15:04 ` Brian Paul 0 siblings, 2 replies; 5+ messages in thread From: Jon Smirl @ 2005-03-16 4:30 UTC (permalink / raw) To: Michel Danzer; +Cc: Xserver development, fbdev, DRI-EGL On Tue, 15 Mar 2005 11:36:53 -0500, Michel Danzer <mdanzer@ati.com> wrote: > On Tue, 2005-03-15 at 11:28 -0500, Jon Smirl wrote: > > > > On Tue, 15 Mar 2005 08:17:13 -0700, Brian Paul > > <brian.paul@tungstengraphics.com> wrote: > > > Perhaps the eglShowSurface() and eglScreenMode() functions should be > > > combined so the new surface and new display mode can be validated > > > together. That way, the undefined state between setting the new > > > surface and new mode can be avoided. > > Makes sense to me. What if I just want to show another surface without changing the mode? I could still use a combined version and since the mode matches the mode won't actually get changed? -- Jon Smirl jonsmirl@gmail.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EGL_MESA_screen_surface proposal 2005-03-16 4:30 ` Jon Smirl @ 2005-03-16 4:44 ` Vladimir Dergachev 2005-03-16 15:04 ` Brian Paul 1 sibling, 0 replies; 5+ messages in thread From: Vladimir Dergachev @ 2005-03-16 4:44 UTC (permalink / raw) To: Jon Smirl; +Cc: fbdev, Michel Danzer, Xserver development, DRI-EGL On Tue, 15 Mar 2005, Jon Smirl wrote: > On Tue, 15 Mar 2005 11:36:53 -0500, Michel Danzer <mdanzer@ati.com> wrote: >> On Tue, 2005-03-15 at 11:28 -0500, Jon Smirl wrote: >>> >>> On Tue, 15 Mar 2005 08:17:13 -0700, Brian Paul >>> <brian.paul@tungstengraphics.com> wrote: >>>> Perhaps the eglShowSurface() and eglScreenMode() functions should be >>>> combined so the new surface and new display mode can be validated >>>> together. That way, the undefined state between setting the new >>>> surface and new mode can be avoided. >> >> Makes sense to me. > > What if I just want to show another surface without changing the mode? > I could still use a combined version and since the mode matches the > mode won't actually get changed? Have a flag that describes what needs to be changed ? best Vladimir Dergachev > > -- > Jon Smirl > jonsmirl@gmail.com > _______________________________________________ > xorg mailing list > xorg@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/xorg > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EGL_MESA_screen_surface proposal 2005-03-16 4:30 ` Jon Smirl 2005-03-16 4:44 ` Vladimir Dergachev @ 2005-03-16 15:04 ` Brian Paul 1 sibling, 0 replies; 5+ messages in thread From: Brian Paul @ 2005-03-16 15:04 UTC (permalink / raw) To: Jon Smirl; +Cc: fbdev, Xserver development, DRI-EGL Jon Smirl wrote: > On Tue, 15 Mar 2005 11:36:53 -0500, Michel Danzer <mdanzer@ati.com> wrote: > >>On Tue, 2005-03-15 at 11:28 -0500, Jon Smirl wrote: >> >>>On Tue, 15 Mar 2005 08:17:13 -0700, Brian Paul >>><brian.paul@tungstengraphics.com> wrote: >>> >>>>Perhaps the eglShowSurface() and eglScreenMode() functions should be >>>>combined so the new surface and new display mode can be validated >>>>together. That way, the undefined state between setting the new >>>>surface and new mode can be avoided. >> >>Makes sense to me. > > > What if I just want to show another surface without changing the mode? > I could still use a combined version and since the mode matches the > mode won't actually get changed? Right. The combined function can just as well be used to change the screen's current mode _or_ current surface. You don't have to change both. -Brian ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-16 15:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4236F0A8.4000004@tungstengraphics.com>
[not found] ` <9e47339105031507064a68630f@mail.gmail.com>
[not found] ` <4236FC79.5000909@tungstengraphics.com>
2005-03-15 16:28 ` EGL_MESA_screen_surface proposal Jon Smirl
2005-03-15 16:36 ` Michel Danzer
2005-03-16 4:30 ` Jon Smirl
2005-03-16 4:44 ` Vladimir Dergachev
2005-03-16 15:04 ` Brian Paul
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.