i965: fix dma_buf import with non-zero offset.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 10 Mar 2014 15:55:21 +0000 (16:55 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 25 Mar 2014 17:56:41 +0000 (18:56 +0100)
commit3bd65dc8a1fec7bba643ffe1fdec8dc2b87ca585
tree104b391a6ac529aebe89e674f103ec0414cd181b
parent1c290680742ce5cb9a0a1019d0f971689335aabc
i965: fix dma_buf import with non-zero offset.

Fix eglCreateImage() from a packed dma_buf surface with a non-zero offset
to pixels data. In particular, this fixes support for planar YUV surfaces
when they are individually mapped on a per-plane basis, i.e. when the
OES_EGL_image_external is not used and user application wants to use its
own shader code for composition, or processing on individual plane (OCL).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_screen.c