Re: Access the intel graphic card via libdrm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 9, 2018 at 10:50 AM Horst Balthasar
<ho.balthasar@xxxxxxxxxxxxxxx> wrote:
>
> Hallo Herr Vetter,
>
>
> thank you very much for our answer?
>
> We also don't want to develop a new driver for the graphic card.
>
> What we want is to access the graphic card via the existing interfaces in
>
> order to execute various image processing commands (e.g. drawing a line,
>
> zooming and so on) directly on the graphic card. We don't want to use OpenGL
>
> (mesa) for this, because we believe that OpenGL is too extensive for our
> purpose.
>
> Is it possible to access the graphic card via DRM/KMS (and GBM) in order to
>
> process images faster on the graphic card via ioctl`s? Are there any
> examples or
>
> documentation for this?

Please don't drop mailing lists, there might be others interested in this.

On your question: It's really not simple to just draw a few lines,
you'll end up writing at least half an opengl driver. I go into more
details in a recent blog post of mine:

https://blog.ffwll.ch/2018/08/no-2d-in-drm.html

So if you want examples of how to drive the gpu through ioctls, then
you want to read the opengl driver. For basic blitting there's other
examples (like the igt test library we have), but that's really not
enough for 2d drawing.

I still recommend you just use opengl es.

Cheers, Daniel


>
> That would help us a lot!!!
>
>
> Many thanks in advance.
>
>
>
> Best regards,
>
>
> Horst Balthasar
>
>
> Am 03.10.18 um 10:56 schrieb Daniel Vetter:
> > On Tue, Oct 02, 2018 at 12:27:02PM +0200, Horst Balthasar wrote:
> >> Hallo,
> >>
> >> as a software developer at the company "imed medical" in Neu-Ulm" I am
> >> working with the intel graphics driver
> >>
> >> under Debian.
> >>
> >> The aim is to output continuous 2D images with the "libdrm" graphic library
> >> on the screen. We use the Intel i915 driver.
> >>
> >> Since I'm not so familiar with the Intel graphics driver (framebuffer, DRM)
> >> unter Debian, I would be verry happy about tips
> >>
> >> and examples to get familiar with this topic.
> >>
> >> I have already downloaded, compiled and installed the libdrm 2.4.94. I have
> >> also implemented the examples from 'modeset'
> >>
> >> and I am able to display a png file on the screen.
> >>
> >> But to process the images afterwards, we need access to the GPU, maybe GEM
> >> ??? Are there any examples or docs to help
> >>
> >> me get used it?
> > For a simple bare-metal (i.e. no compositor/desktop environment like X,
> > wayland or similar) look at kmscube. Contains everything you need for
> > accelarated rendering with just the kernel. Plus mesa, but you really,
> > really, really don't want to write your own rendering driver :-)
> >
> > https://github.com/robclark/kmscube
> >
> > Cheers, Daniel
> >
> >
> >>
> >> Thank you very much.
> >>
> >>
> >> Bests regards,
> >>
> >>
> >>
> >> Horst Balthasar
> >>
> >>
> >> Horst Balthasar
> >> Software-Entwickler Medizintechnik
> >>
> >> --
> >> imed medical GmbH
> >> Friedrichshafener Strasse 7
> >> D-89079 Ulm
> >>
> >> Standort Neu-Ulm
> >> Marlene-Dietrich-Strasse 5
> >> D-89231 Neu-Ulm
> >>
> >> Fon      +49 (0)731 1411 179-6
> >> Fax      +49 (0)731 1411 6513
> >> Zentrale +49 (0)731 1411 179-0
> >> Web      www.imed-medical.de
> >>
> >> Sitz der Gesellschaft: Ulm Württemberg | Registergericht Ulm | HRB 730620 | Geschäftsführer: Benedikt Schmalz,
> >> Stefan Schmalz-Conrad
> >>
> >> Diese E-Mail ist vertraulich und enthält gesetzlich geschützte Informationen.
> >> Wenn Sie NICHT der rechtmäßige Empfänger oder einer seiner Mitarbeiter sind, dürfen Sie den Inhalt WEDER lesen,
> >> kopieren, verbreiten NOCH nutzen.
> >> Sollten Sie diese E-Mail versehentlich erhalten haben, senden Sie sie bitte an uns zurück und löschen Sie
> >> sie anschließend dauerhaft. Vielen Dank.
> >>
> >> _______________________________________________
> >> dri-devel mailing list
> >> dri-devel@xxxxxxxxxxxxxxxxxxxxx
> >> https://lists.freedesktop.org/mailman/listinfo/dri-devel
>
> Horst Balthasar
> Software-Entwickler Medizintechnik
>
> --
> imed medical GmbH
> Friedrichshafener Strasse 7
> D-89079 Ulm
>
> Standort Neu-Ulm
> Marlene-Dietrich-Strasse 5
> D-89231 Neu-Ulm
>
> Fon      +49 (0)731 1411 179-6
> Fax      +49 (0)731 1411 6513
> Zentrale +49 (0)731 1411 179-0
> Web      www.imed-medical.de
>
> Sitz der Gesellschaft: Ulm Württemberg | Registergericht Ulm | HRB 730620 | Geschäftsführer: Benedikt Schmalz,
> Stefan Schmalz-Conrad
>
> Diese E-Mail ist vertraulich und enthält gesetzlich geschützte Informationen.
> Wenn Sie NICHT der rechtmäßige Empfänger oder einer seiner Mitarbeiter sind, dürfen Sie den Inhalt WEDER lesen,
> kopieren, verbreiten NOCH nutzen.
> Sollten Sie diese E-Mail versehentlich erhalten haben, senden Sie sie bitte an uns zurück und löschen Sie
> sie anschließend dauerhaft. Vielen Dank.
>


-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux