[Intel-gfx] Shared memory management

Ben Widawsky ben at bwidawsk.net
Fri Jan 6 17:40:39 CET 2012


On Fri, Jan 06, 2012 at 08:18:22AM -0800, Eric Anholt wrote:
> On Fri, 6 Jan 2012 09:30:13 +0100, Yegor Yefremov <yegorslists at googlemail.com> wrote:
> > I need to know how to allocate 1Gb video memory. My system:
> 
> Applications can allocate arbitrary amounts of buffers that are
> dynamically bound to the GPU.  The limit of what can be bound at for a
> single draw call is defined by the hardware, so there are no user
> controls.  The only information you get on that limit is:
> 
> dmesg | grep agp:
> [    2.283526] agpgart-intel 0000:00:00.0: detected gtt size: 2097152K total, 262144K mappable
> 
> so this system can map 2GB at once.

mount debugfs
cat /sys/kernel/debug/dri/0/i915_gem_gtt
Will show how much is being used.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20120106/34e253bb/attachment.sig>


More information about the Intel-gfx mailing list