Mesa (master): i965: fix fbo-srgb on i965.
Dave Airlie
airlied at kemper.freedesktop.org
Fri Jan 14 04:59:10 UTC 2011
Module: Mesa
Branch: master
Commit: 483de8ef2eb9d4861c746dee750379529ea0ce0c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=483de8ef2eb9d4861c746dee750379529ea0ce0c
Author: Dave Airlie <airlied at gmail.com>
Date: Thu Jan 13 15:46:44 2011 +1000
i965: fix fbo-srgb on i965.
Until we get the EXT_framebuffer_sRGB extension we should bind the sRGB
formats for FBO as linear.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index e921d8a..233fe3b 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -435,6 +435,11 @@ brw_update_renderbuffer_surface(struct brw_context *brw,
*/
surf.ss0.surface_format = BRW_SURFACEFORMAT_B8G8R8A8_UNORM;
break;
+ case MESA_FORMAT_SARGB8:
+ /* without GL_EXT_framebuffer_sRGB we shouldn't bind sRGB
+ surfaces to the blend/update as sRGB */
+ surf.ss0.surface_format = BRW_SURFACEFORMAT_B8G8R8A8_UNORM;
+ break;
default:
surf.ss0.surface_format = brw_format_for_mesa_format[irb->Base.Format];
assert(surf.ss0.surface_format != 0);
More information about the mesa-commit
mailing list