Re: [Mesa-dev] [PATCH 4/8] intel: Implement __DRIimage::createSubImage and bump supported version to 5

2012-07-06 Thread Kristian Høgsberg
On Fri, Jul 06, 2012 at 02:16:23PM -0700, Eric Anholt wrote: > Kristian Høgsberg writes: > > +static __DRIimage * > > +intel_create_sub_image(__DRIimage *parent, > > + int width, int height, int dri_format, > > + int offset, int pitch, void *loaderPrivat

Re: [Mesa-dev] [PATCH 4/8] intel: Implement __DRIimage::createSubImage and bump supported version to 5

2012-07-06 Thread Eric Anholt
Kristian Høgsberg writes: > +static __DRIimage * > +intel_create_sub_image(__DRIimage *parent, > + int width, int height, int dri_format, > + int offset, int pitch, void *loaderPrivate) > +{ > +__DRIimage *image; > + > +image = intel_allocate_ima

[Mesa-dev] [PATCH 4/8] intel: Implement __DRIimage::createSubImage and bump supported version to 5

2012-07-05 Thread Kristian Høgsberg
We use the new miptree offset to pick out the sub-image when we bind the EGLImage to a texture. Signed-off-by: Kristian Høgsberg --- src/mesa/drivers/dri/intel/intel_regions.h |1 + src/mesa/drivers/dri/intel/intel_screen.c| 36 -- src/mesa/drivers/dri/intel/i