diff options
author | Kenneth Graunke <[email protected]> | 2016-08-01 21:56:38 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-08-08 14:01:51 -0700 |
commit | ad32dcf630c387e01f415f98717aad08d20ff9f2 (patch) | |
tree | 1cbe76eb275c431d84f31801e35c9e0edd0a3a08 /src/mesa/drivers/common | |
parent | 352401f6a9e50021e06459017de72c695ae684c2 (diff) |
i965: Make BLORP's BlitFramebuffer follow the GL 4.4 sRGB rules.
OpenGL 4.4 specifies that BlitFramebuffer should perform sRGB encode
and decode like ES 3.x does, but only when GL_FRAMEBUFFER_SRGB is
enabled. This is technically incompatible in certain cases, but is
more consistent across GL, ES, and WebGL, and more flexible.
The NVIDIA 367.35 drivers appear to follow this behavior.
For the awful spec analysis, please read Piglit's
tests/spec/arb_framebuffer_srgb/blit.c, which explains the differences
between GL 4.1, 4.2, 4.3 (2012), 4.3 (2013), and 4.4, and why this
is the right rule to implement.
Note that ctx->Color.sRGBEnabled is initialized to _mesa_is_gles(ctx),
and ES doesn't have enable/disable flags for GL_FRAMEBUFFER_SRGB, so
it's effectively on all the time. This means the ES behavior should
be unchanged.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common')
0 files changed, 0 insertions, 0 deletions