[PATCH] drm: dumb scanout create/mmap for intel/radeon (v3)

2011-01-07 Thread Dave Airlie
From: Dave Airlie This is just an idea that might or might not be a good idea, it basically adds two ioctls to create a dumb and map a dumb buffer suitable for scanout. The handle can be passed to the KMS ioctls to create a framebuffer. It looks to me like it would be useful

[PATCH] drm: dumb scanout create/mmap for intel/radeon (v3)

2011-01-07 Thread Chris Wilson
On Fri, 7 Jan 2011 09:16:51 +1000, Dave Airlie wrote: > +int > +i915_gem_dumb_create(struct drm_file *file, > + struct drm_device *dev, > + struct drm_mode_create_dumb *args) > +{ > + /* have to work out size/pitch and return them */ > + args->pitch =

[PATCH] drm: dumb scanout create/mmap for intel/radeon (v3)

2011-01-06 Thread Jesse Barnes
On Fri, 7 Jan 2011 09:16:51 +1000 Dave Airlie wrote: > From: Dave Airlie > > This is just an idea that might or might not be a good idea, > it basically adds two ioctls to create a dumb and map a dumb buffer > suitable for scanout. The handle can be passed to the KMS ioctls to create > a

[PATCH] drm: dumb scanout create/mmap for intel/radeon (v3)

2011-01-06 Thread Corbin Simpson
On Thu, Jan 6, 2011 at 3:16 PM, Dave Airlie wrote: > From: Dave Airlie > > This is just an idea that might or might not be a good idea, > it basically adds two ioctls to create a dumb and map a dumb buffer > suitable for scanout. The handle can be passed to the KMS ioctls to create > a

[PATCH] drm: dumb scanout create/mmap for intel/radeon (v3)

2011-01-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is just an idea that might or might not be a good idea, it basically adds two ioctls to create a dumb and map a dumb buffer suitable for scanout. The handle can be passed to the KMS ioctls to create a framebuffer. It looks to me like it would be useful

Re: [PATCH] drm: dumb scanout create/mmap for intel/radeon (v3)

2011-01-06 Thread Chris Wilson
On Fri, 7 Jan 2011 09:16:51 +1000, Dave Airlie airl...@gmail.com wrote: +int +i915_gem_dumb_create(struct drm_file *file, + struct drm_device *dev, + struct drm_mode_create_dumb *args) +{ + /* have to work out size/pitch and return them */ +

Re: [PATCH] drm: dumb scanout create/mmap for intel/radeon (v3)

2011-01-06 Thread Corbin Simpson
On Thu, Jan 6, 2011 at 3:16 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This is just an idea that might or might not be a good idea, it basically adds two ioctls to create a dumb and map a dumb buffer suitable for scanout. The handle can be passed to the KMS

Re: [PATCH] drm: dumb scanout create/mmap for intel/radeon (v3)

2011-01-06 Thread Jesse Barnes
On Fri, 7 Jan 2011 09:16:51 +1000 Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This is just an idea that might or might not be a good idea, it basically adds two ioctls to create a dumb and map a dumb buffer suitable for scanout. The handle can be passed to the