intel: add support for __DRI_IMAGE_FORMAT_ABGR8888
authorChia-I Wu <olv@lunarg.com>
Sun, 21 Aug 2011 13:36:40 +0000 (21:36 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 9 Sep 2011 04:06:17 +0000 (12:06 +0800)
commit9fe197c62611815ebe74248033271ad9fd07ae06
tree726d0a74027ffc673f3ae1b0dea2fa2cdb592fe6
parente3cf7b69f24c186310eb3be4c462cccea028e6f2
intel: add support for __DRI_IMAGE_FORMAT_ABGR8888

It maps to MESA_FORMAT_RGBA8888_REV.  Surfaces of the format can only be
sampled from but not render to.

Only i915 is tested.

Reviewed-by: Eric Anholt <eric@anholt.net>
[olv: add a check in intel_image_target_renderbuffer_storage]
src/mesa/drivers/dri/i915/i915_texstate.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_screen.c