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)? Cheers, Ben
On Wed, Aug 1, 2012 at 12:59 PM, Segovia, Benjamin benjamin.segovia@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.
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@gmail.com] Sent: Tuesday, July 31, 2012 8:02 PM To: Segovia, Benjamin Cc: dri-devel@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@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.
On Wed, Aug 1, 2012 at 1:07 PM, Segovia, Benjamin benjamin.segovia@intel.com wrote:
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!
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/intel_disp...
Dave.
dri-devel@lists.freedesktop.org