Fix DRI2 accelerated EXT_texture_from_pixmap with GL_RGB format.
authorEric Anholt <eric@anholt.net>
Wed, 18 Mar 2009 19:07:09 +0000 (12:07 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Mar 2009 17:41:28 +0000 (10:41 -0700)
commit66175aac7609ad314f25fbdff0d3958af310dc24
treec8b80a86679d765d76285f5f98f97d6276ddc167
parentcf0122e892df56bc3b013e5d92e487d0fd65f23d
Fix DRI2 accelerated EXT_texture_from_pixmap with GL_RGB format.

This requires upgrading the interface so that the argument to
glXBindTexImageEXT isn't just dropped on the floor.  Note that this only
fixes the accelerated path on Intel, as Mesa's texture format support is
missing x8r8g8b8 support (right now, GL_RGB textures get uploaded as a8r8gb8,
but in this case we're not doing the upload so we can't really work around it
that way).

Fixes bugs with compositors trying to use shaders that use alpha channels, on
windows without a valid alpha channel.  Bug #19910 and likely others as well.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
include/GL/internal/dri_interface.h
include/GL/internal/glcore.h
src/glx/x11/glx_pbuffer.c
src/glx/x11/glxclient.h
src/glx/x11/glxcmds.c
src/mesa/drivers/dri/i915/i830_texstate.c
src/mesa/drivers/dri/i915/i915_texstate.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_tex.h
src/mesa/drivers/dri/intel/intel_tex_image.c