i965: Bail on the BLT path if BlitFramebuffer requires sRGB conversion.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Aug 2016 03:58:30 +0000 (20:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 8 Aug 2016 21:01:51 +0000 (14:01 -0700)
commitb1586526e84ab6eab2023b589da8e153f70dda50
tree59944d5e84ec690104354f291ac2923c3e2b8912
parent7dfb1a4074328bcdff4b407b8f44be538180791d
i965: Bail on the BLT path if BlitFramebuffer requires sRGB conversion.

Modern OpenGL BlitFramebuffer require sRGB encode/decode when
GL_FRAMEBUFFER_SRGB is enabled.  The blitter can't handle this,
so we need to bail.  On Gen4-5, this means falling back to Meta,
which should handle it.

We allow sRGB <-> sRGB blits, as decode then encode ought to be a noop
(other than potential precision loss, which nobody wants anyway).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/intel_blit.c
src/mesa/drivers/dri/i965/intel_fbo.c