Module: Mesa Branch: master Commit: 53091a0312edf38a87a4b7a6e88b52e1887750ca URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=53091a0312edf38a87a4b7a6e88b52e1887750ca
Author: Neha Bhende <[email protected]> Date: Thu May 4 11:25:04 2017 -0700 svga: convert dst format to linear when blending is enabled. When blending is enabled, framebuffer colorspace has to be linear. Previously, we never hit this case because we were not supporting sRGB drawable. Previous patch added that support. Tested with mtt glretrace, viewperf, piglit, conform. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> --- src/gallium/drivers/svga/svga_pipe_blit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/svga/svga_pipe_blit.c b/src/gallium/drivers/svga/svga_pipe_blit.c index bca0de3845..d97f623870 100644 --- a/src/gallium/drivers/svga/svga_pipe_blit.c +++ b/src/gallium/drivers/svga/svga_pipe_blit.c @@ -597,8 +597,10 @@ try_blit(struct svga_context *svga, const struct pipe_blit_info *blit_info) * If format is srgb and blend is enabled then color values need * to be converted into linear format. */ - if (is_blending_enabled(svga, &blit)) + if (is_blending_enabled(svga, &blit)) { blit.src.format = util_format_linear(blit.src.format); + blit.dst.format = util_format_linear(blit.dst.format); + } /* Check if we can create shader resource view and * render target view for the quad blitter to work _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
