intel: implement create image from texture
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Wed, 28 Nov 2012 11:30:18 +0000 (13:30 +0200)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 1 Feb 2013 19:58:13 +0000 (11:58 -0800)
commit6c7e95cb891f05be4014ab1e7bb9eb7ce32f898c
tree3b7b353aafb11545a938df3bbfba3015f0b623b2
parent8e2454c562ce9e6d06ba5e39c8e03097d3590c0e
intel: implement create image from texture

Save miptree level info to DRIImage:
- Appropriately-aligned base offset pointing to the image
- Additional x/y adjustment offsets from above.

v8:  -Bump intelImageExtension version
v9:  -Don't use internal _eglError but implement error reporting in new DRI inteface
      instead. This fixes Android build problems based on feedback from
      Adrian M Negreanu and Chad Versace.
     -Move the non-tile-aligned check and error-reporting to intel_set_texture_image_region
v10: -Don't #include "egl/main/eglcurrent.h". [chadv]

Reviewed-by: Eric Anholt <eric@anholt.net> (v6)
Acked-by: Chad Versace <chad.versace@linux.intel.com> (v10)
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/drivers/dri/intel/intel_screen.c