intel: restrict dma-buf-import images to external sampling only
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 18 Jun 2013 10:47:43 +0000 (13:47 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 2 Aug 2013 05:56:03 +0000 (08:56 +0300)
commit3a52cd351af6ad834fa6205ec03a82559d1cea92
tree6537adb4d0aa12d14576e52ec22c94208cbdc517
parent0de013b61930505bbeaf094d079b566df18a0cf7
intel: restrict dma-buf-import images to external sampling only

Memory originating outside mesa stack is meant to be for reading
only. In addition, the restrictions imposed by the image external
extension should apply. For example, users shouldn't be allowed
to generare mip-trees based on these images.

v2 (Chad): document using full extension names, fix the comment
           style itself and emit description of error

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/intel_fbo.c
src/mesa/drivers/dri/i965/intel_regions.h
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/intel_tex_image.c