On Sat, Feb 22, 2014 at 5:22 AM, Emil Velikov <emil.l.veli...@gmail.com>wrote:
> On 22/02/14 03:33, Stéphane Marchesin wrote: > > On Fri, Feb 21, 2014 at 7:04 PM, Emil Velikov <emil.l.veli...@gmail.com > >wrote: > > > >> Implementation is a verbatim copy from the classic driver. > >> > >> This introduces a driver dependency on libdrm-intel, as the winsys does > not > >> cache the aperture size of the device. > >> > > > > Usually if you have to add calls into libdrm, you add them to the winsys, > > and then add a new entry point to the winsys which you call... If you > want > > I can do it. > > > > I've been ensuring that the only place calling into libdrm was the winsys > > so far. Whether or not we remove the sw winsys, I think it's a healthy > > thing to do. > > > Agreed, keeping OS/platform specifics within the winsys is the way to do > it. > > Should I store the device aperture size within i915_winsys or is there a > more suitable place for it ? The current implementation is essentially a > vtable for the drm/sw callbacks. > I would probably just add a function to the winsys to get the aperture size. Basically copy-paste that big chunk of code from case PIPE_CAP_VIDEO_MEMORY into int iws->aperture_size(struct i915_winsys *iws); Stéphane
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev