[Mesa-dev] How MESA display image in case of use full software rendering?

Ilia Mirkin imirkin at alum.mit.edu
Wed Dec 25 15:13:24 UTC 2019


Your best bet is to recreate your driver as a KMS driver. This should
be relatively straightforward -- lots of helpers exist to cover your
use-case. Perhaps the "tiny" drivers are appropriate. Also a quick
search reveals this:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842520/Xilinx+DRM+KMS+driver

which suggests that a driver already exists, although I don't see it upstream.

  -ilia

On Wed, Dec 25, 2019 at 4:04 AM Oleg Gavrilchenko
<gavrilchenko at avionica.spb.ru> wrote:
>
> Thank you for answer! I wathed kmscube example. I want to clarify some
> things. I have system on ARM(Xilinx ZYNQ). It is not have GPU, there is
> only DDR framebuffer, which display through HDMI via FPGA logic.
> I wrote for it small fbdev driver. Programs may read/write this
> framebuffer through /dev/fb0. That is all. I not write DRM and KMS
> support for this device.
> I try use OSMesa with this framebuffer, and it work fine.
> Should I add support DRM or KMS support on my driver for  OpenGL work right?
>
> On 12/25/19 6:10 AM, Ilia Mirkin wrote:
> > Not specific to swrast, but there's a "drm" platform via gbm (or a gbm
> > platform with drm output? I'll never remember). You should be able to
> > use this to output directly to a kms output. An example of such an
> > application is kmscube -- it's more geared to hardware accel, but I
> > don't see any reason why it wouldn't work with swrast. See
> > https://cgit.freedesktop.org/mesa/kmscube . I don't think there's any
> > integration with fbdev, but I also don't see why such an integration
> > would be precluded from existing -- however you're better off with
> > kms, as that's the supported thing.
> >
> > On Mon, Dec 23, 2019 at 6:01 AM Oleg Gavrilchenko
> > <gavrilchenko at avionica.spb.ru> wrote:
> >> Hi! Sorry for my English, it is not my first language(Russian).
> >>
> >> I can ask. How MESA display image in case of use full software
> >> rendering? What does interface it use?
> >> It use /dev/fbX, drm or otherwise method?
> >>
> >> _______________________________________________
> >> mesa-dev mailing list
> >> mesa-dev at lists.freedesktop.org
> >> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> >


More information about the mesa-dev mailing list