drm_intel_bo for the KMS framebuffer with IvyBridge?

Segovia, Benjamin benjamin.segovia at intel.com
Tue Jul 31 20:07:59 PDT 2012


Yes, I imagine this is not exactly using the API by the book :) but this is really to play with the HW not to write a real application. Can you give me the complete link to the file? I am not finding it in libdrm source. I guess it is somewhere else.
Thanks!
Ben


-----Original Message-----
From: Dave Airlie [mailto:airlied at gmail.com] 
Sent: Tuesday, July 31, 2012 8:02 PM
To: Segovia, Benjamin
Cc: dri-devel at lists.freedesktop.org
Subject: Re: drm_intel_bo for the KMS framebuffer with IvyBridge?

On Wed, Aug 1, 2012 at 12:59 PM, Segovia, Benjamin
<benjamin.segovia at intel.com> wrote:
> Hello all,
>
> Saying I want to play with an IvyBridge machine and the display when X is
> *not* running (I just opened /dev/dri/card0 from a terminal). Is there a
> simple way to get a drm_intel_bo for the terminal framebuffer such that I
> can brutally write into it? So, can I easily get its bo and its format
> (width, height, pitch, format, tiling)?
>

Not recommended, but there is code in the ddx to get the handle for
the framebufffer so we can copy it at X startup.

Its in intel_display.c.

Dave.


More information about the dri-devel mailing list