intel: Don't expose XRGB8888 visuals any more
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 21 Jan 2013 01:39:54 +0000 (20:39 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 21 Jan 2013 18:34:34 +0000 (13:34 -0500)
commit75b7e1df139676f2456fea4d3a57cf0044d8409e
tree4c5a027947cbd1d5dfea1edf72994d404ebbd2f6
parent9bdf5bef762acdc7169eceff8c0eef0efe88cdbe
intel: Don't expose XRGB8888 visuals any more

There really isn't any point.  There is no resource savings, and we have
to do gymnastics in the driver to make it work.

There are also bad interactions with multisampling and OpenGL ES 3.0.
In ES3, a multisample-to-singlesample blit must have identical source
and destination format.  This means a multisample RGBA8 to singlesample
RGB8 (window) blit will generate an error.  Also in ES3, RGB8 is not a
renderable format.  This means that the application CANNOT make an RGB8
multisample renderbuffer.

As a result, if an application gets an RGB8 window and wants to do
multisample FBO rendering, it will probably break.

"Fixes" gles3conform
framebuffer_blit_functionality_multisampled_to_singlesampled_blit test
on RGB8 visuals.

v2: Fix 'formats' array size.  Suggested by Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_screen.c