Mesa (master): st/mesa: use PIPE_BIND_DISPLAY_TARGET when checking for sRGB capability
Brian Paul
brianp at kemper.freedesktop.org
Wed Oct 29 00:09:36 UTC 2014
Module: Mesa
Branch: master
Commit: 6ad1c1eec104fbedd20335f0ea4afcd5dba63203
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ad1c1eec104fbedd20335f0ea4afcd5dba63203
Author: Brian Paul <brianp at vmware.com>
Date: Mon Oct 27 15:03:05 2014 -0600
st/mesa: use PIPE_BIND_DISPLAY_TARGET when checking for sRGB capability
When we're checking if the framebuffer is sRGB capable, call
is_format_supported() with the PIPE_BIND_DISPLAY_TARGET flag.
Reviewed-by: Charmaine Lee <charmainel at vmware.com>
---
src/mesa/state_tracker/st_manager.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index df6de73..606d678 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -452,7 +452,8 @@ st_framebuffer_create(struct st_context *st,
st_pipe_format_to_mesa_format(srgb_format) != MESA_FORMAT_NONE &&
screen->is_format_supported(screen, srgb_format,
PIPE_TEXTURE_2D, stfbi->visual->samples,
- PIPE_BIND_RENDER_TARGET))
+ (PIPE_BIND_DISPLAY_TARGET |
+ PIPE_BIND_RENDER_TARGET)))
mode.sRGBCapable = GL_TRUE;
}
More information about the mesa-commit
mailing list