* Access the intel graphic card via libdrm @ 2018-10-02 10:27 Horst Balthasar 2018-10-03 8:56 ` Daniel Vetter 0 siblings, 1 reply; 3+ messages in thread From: Horst Balthasar @ 2018-10-02 10:27 UTC (permalink / raw) To: dri-devel 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? 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@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Access the intel graphic card via libdrm 2018-10-02 10:27 Access the intel graphic card via libdrm Horst Balthasar @ 2018-10-03 8:56 ` Daniel Vetter [not found] ` <1860a139-b1d4-3d84-2de9-f3c9e70e7457@imed-medical.de> 0 siblings, 1 reply; 3+ messages in thread From: Daniel Vetter @ 2018-10-03 8:56 UTC (permalink / raw) To: Horst Balthasar; +Cc: dri-devel 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@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <1860a139-b1d4-3d84-2de9-f3c9e70e7457@imed-medical.de>]
* Re: Access the intel graphic card via libdrm [not found] ` <1860a139-b1d4-3d84-2de9-f3c9e70e7457@imed-medical.de> @ 2018-10-11 8:09 ` Daniel Vetter 0 siblings, 0 replies; 3+ messages in thread From: Daniel Vetter @ 2018-10-11 8:09 UTC (permalink / raw) To: Horst Balthasar, dri-devel On Tue, Oct 9, 2018 at 10:50 AM Horst Balthasar <ho.balthasar@imed-medical.de> 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@lists.freedesktop.org > >> 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@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-11 8:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-02 10:27 Access the intel graphic card via libdrm Horst Balthasar
2018-10-03 8:56 ` Daniel Vetter
[not found] ` <1860a139-b1d4-3d84-2de9-f3c9e70e7457@imed-medical.de>
2018-10-11 8:09 ` Daniel Vetter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox