mesa/965: add support for GL_EXT_framebuffer_sRGB (v2)
authorDave Airlie <airlied@gmail.com>
Fri, 28 Jan 2011 04:16:00 +0000 (14:16 +1000)
committerDave Airlie <airlied@gmail.com>
Sat, 5 Feb 2011 07:06:30 +0000 (17:06 +1000)
commit88ffa9ce5b8e5fe2b93238f8b9a7a888be28324e
treef59e467d5cc03f938f9c4326c72029b9ef08dbc9
parent5c3f1cdbbeb4d787bad7729ccd3f10aa78d113ac
mesa/965: add support for GL_EXT_framebuffer_sRGB (v2)

This adds i965 support for GL_EXT_framebuffer_sRGB, it introduces a new
constant to say that the driver can support sRGB enabled FBOs since enabling
the extension doesn't mean the driver can actually support sRGB.

Also adds the suggested state flush in the core code suggested by Brian.

fix the ARB_fbo color encoding.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_extensions.c
src/mesa/main/enable.c
src/mesa/main/fbobject.c
src/mesa/main/framebuffer.c
src/mesa/main/mtypes.h